Python
Install the official Python SDK:arbitrator, is configured when the Memorose server starts. SDK requests do not select the reranker model.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Python SDK for the current Memorose /v1 runtime.
pip install memorose
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)
arbitrator, is configured when the Memorose server starts. SDK requests do not select the reranker model.