search
Search memories using hybrid keyword and vector matching, with optional domain and type filters for precise recall.
Instructions
Hybrid search over memory content+tags+domain: BM25 keywords + local-model vectors.
Each result is annotated with match_source ("fts" | "vec" | "both"), fts_rank (bm25, lower = better) and/or vec_distance (cosine, lower = closer). Both retrievers only widen the candidate set -- judge the returned candidates yourself. Multiple space-separated paraphrases still help the keyword side (they're OR'd together). Only active memories by default. Falls back to keyword-only if the embedding model is unavailable. Content is snippet-truncated per result -- call get_memory(uid) for the full record.
type filters (one writer each): 'note', 'reasoning', 'checkpoint', 'anti_pattern', 'handoff'. To recall note()'d knowledge specifically, recall() is the sugar for search(type='note').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | ||
| limit | No | ||
| query | Yes | ||
| domain | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |