> ## Documentation Index
> Fetch the complete documentation index at: https://docs.memorose.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Python

> Python SDK for the current Memorose `/v1` runtime.

# Python

Install the official Python SDK:

```bash theme={null}
pip install memorose
```

Basic retrieval flow:

```python theme={null}
from memorose import MemoroseClient
from memorose.types import IngestRequest, RetrieveRequest

client = MemoroseClient("http://127.0.0.1:3000", "your_api_key")
stream_id = "11111111-1111-1111-1111-111111111111"

client.ingest_event(
    "user_123",
    stream_id,
    IngestRequest(content="Dylan prefers concise summaries.", org_id="default"),
)

response = client.retrieve_memory(
    "user_123",
    stream_id,
    RetrieveRequest(query="What does Dylan prefer?", limit=5, org_id="default"),
)

print(response.results)
```

Server-side reranker mode, including `arbitrator`, is configured when the Memorose server starts. SDK requests do not select the reranker model.
