Choosing memory sources
Everysearch() call can selectively enable or disable each memory store. By default, all three are active.
Graph traversal depth
Control how many relationship hops the graph reasoner follows withmax_hops. Higher values surface deeper connections but cost more latency.
Result count and score filtering
Contextual compression (LLM reranking)
Enableuse_compression to have an LLM extract only the query-relevant portions of each retrieved document before returning them. This reduces context window usage at the cost of one extra LLM call.
Contextual compression requires
OPENAI_API_KEY to be set on the server. It is disabled by default.Session routing
When asession_id is provided, Atlas automatically:
- Reads the rolling topic vector from Redis (EMA of recent turn embeddings)
- Blends it with the query vector:
q_blended = 0.6 · q_query + 0.4 · topic_vec - Caches top-k results as hot facts for fast re-access in the same session
Filtering by persona
Passpersona in the request to restrict retrieval to a specific agent role. Memories stored under "shared" persona are always included.