Documentation Index
Fetch the complete documentation index at: https://docs.memmachine.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
TheSearchMemoriesOptions interface allows you to refine how the memory engine
retrieves and ranks episodic and semantic results. It is used as the optional
second argument in the MemMachineMemory.search() method.
Properties
All properties in this interface are optional.| Property | Type | Description |
|---|---|---|
top_k | number | The maximum number of relevant memories to return. |
score_threshold | number | The minimum similarity score required for a memory to be included in results. |
filter | string | A metadata-based filter string to narrow the search scope. User metadata fields must be prefixed with m. / metadata. (for example m.user_id = '123'). String literals must be single-quoted. Unknown or misspelled user metadata fields return a 400 error. |
expand_context | number | The number of surrounding chronological episodes to retrieve for each hit. |
types | MemoryType[] | Restricts the search to specific memory classifications (e.g., semantic). |
agent_mode | boolean | Enables top-level retrieval-agent orchestration for episodic retrieval. |

