Search memories with hybrid retrieval (semantic + BM25 + entity matching) and advanced filtering using logical and comparison operators.
Relevance-ranked hybrid search across stored memories. V3 uses multi-signal retrieval — semantic, BM25 keyword, and entity matching scored in parallel and fused. The returnedDocumentation Index
Fetch the complete documentation index at: https://docs.mem0.ai/llms.txt
Use this file to discover all available pages before exploring further.
score is a combined [0, 1] value.
Entity IDs (user_id, agent_id, app_id, run_id) must be passed inside the filters object — top-level entity IDs are rejected with 400. At least one entity ID is required.
The filters object supports complex logical operations (AND, OR, NOT) and comparison operators:
in: Matches any of the values specifiedgte: Greater than or equal tolte: Less than or equal togt: Greater thanlt: Less thanne: Not equal toicontains: Case-insensitive containment check*: Wildcard character that matches everything| Parameter | V1/V2 | V3 |
|---|---|---|
top_k | Supported (default 10) | Supported (1-1000, default 10) |
threshold | No default | Default 0.1 (pass 0.0 to disable) |
rerank | Default true | Default false (pass true to enable) |
Natural-language search query.
1Entity and metadata filters. Must include at least one entity ID (user_id, agent_id, app_id, or run_id). Supports AND, OR, NOT, and comparison operators (in, gte, lte, gt, lt, contains, icontains, ne).
Number of results to return.
1 <= x <= 1000Minimum semantic relevance score. Pass 0.0 to disable filtering.
0 <= x <= 1Apply the managed reranker for better ordering (adds latency).
Optional query anchor time for relative temporal interpretation. Accepts Unix epoch, YYYY-MM-DD, or ISO datetime.
Ranked search results.