search_memory
Find relevant indexed memories with hybrid relevance ranking (vector + BM25 + reranking), optionally filter by date, to support tasks, debugging, and writing.
Instructions
Search indexed memories by hybrid relevance (vector + BM25 + reranking) and return ranked results with optional temporal filtering. The shown score is a fused ranking score (0-100%), NOT pure cosine similarity — read it as relative ranking within this result set, not as match confidence. Read-only, but may fire stored reminders as a side effect. Use proactively at the start of tasks, when debugging, writing, or when the user references past work.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Filter memories stored after this date (ISO format YYYY-MM-DD, or relative like '最近30天', 'last 7 days') | |
| graph | No | Enable KG graph traversal (PPR) for relationship-aware search. Use when query involves entity relationships (e.g. 'what tools does Alice use', 'Bob的朋友'). | |
| limit | No | Max results to return | |
| query | Yes | Search query — natural language or keywords | |
| scope | No | Optional explicit scope | |
| before | No | Filter memories stored before this date (ISO format YYYY-MM-DD, or relative) | |
| render | No | Result rendering mode: verbatim (default, original order) or highlight (reorder by contextual relevance to query) | verbatim |
| profile | No | Retrieval profile | |
| validAt | No | Query memories valid at a specific point in time (ISO date, e.g. '2025-06-15'). Returns only memories whose validity window covers this date. | |
| category | No | Filter by memory category: profile (identity/background), preferences (habits/style), entities (projects/tools/people), events (past happenings), cases (problem-solution pairs), patterns (reusable workflows) | |
| topicTag | No | Filter by topic tag (e.g. 'auth', 'deploy', 'testing'). Only returns memories tagged with this topic. | |
| allScopes | No | When true, explicitly allow cross-scope search | |
| sessionId | No | Optional session identifier to infer session:<id> scope | |
| reconstruct | No | Return LLM-synthesized reconstruction alongside raw results. Requires RECALLNEST_CONSTRUCTIVE_RETRIEVAL=true. | |
| detail_level | No | Result detail level: brief (ID+score+one-liner), normal (default, table), full (include metadata), adaptive (per-result L0/L1/L2 fidelity by relevance within an 8k token budget — high-relevance gets full text, lower gets summary/one-line) | normal |
| includeExpired | No | When true, include expired memories in results (demoted 80%). Default: only active/non-expired. | |
| includeArchived | No | When true, also return archived/superseded/consolidated memories (default: only active) | |
| includeRelatedScopes | No | When true, also query configured related scopes from scopeRelations and show them in a separate sidecar section. Requires an explicit or inferred scoped search; never changes the main result ranking. |