Search Memories
Search memories within a project.
System returns the top K relevant memories matching the natural language query. The result is sorted by timestamp to help with context.
The filter field accepts the structured filter expression language.
User-defined metadata keys must be referenced with the m. or metadata. prefix
(for example, m.source = "chat_v3"). Unknown or unsupported fields are rejected
instead of being ignored.
The set_metadata field scopes semantic memories to matching semantic sets.
The types field allows specifying which memory types to include in the search.
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.
Body
Specification model for searching memories.
The natural language query used for semantic memory search. This should be
a descriptive string of the information you are looking for.
"What was the user's last conversation about finance?"
The unique identifier of the organization.
- Must not contain slashes (`/`).
- Must contain only letters, numbers, underscores, hyphens, colon, and Unicode
characters (e.g., Chinese/Japanese/Korean). No slashes or other symbols
are allowed.
This value determines the namespace the project belongs to.
"MemVerge"
"AI_Labs"
The identifier of the project.
- Must be unique within the organization.
- Must not contain slashes (`/`).
- Must contain only letters, numbers, underscores, hyphens, colon, and Unicode
characters (e.g., Chinese/Japanese/Korean). No slashes or other symbols
are allowed.
This ID is used in API paths and resource locations.
"memmachine"
"research123"
"qa_pipeline"
The maximum number of memories to return in the search results.
5
10
20
An optional string filter applied to the memory metadata. This uses a
simple query language (e.g., 'metadata.user_id=123') for exact matches.
Multiple conditions can be combined using AND operators. The metadata
fields are prefixed with 'metadata.' to distinguish them from other fields.
"metadata.user_id=123 AND metadata.session_id=abc"
Optional metadata key-value pairs used to filter or identify semantic sets.
The number of additional episodes to include around each matched
episode from long term memory for better context.
0
3
6
The minimum score for a memory to be included in the search results. Defaults
to -inf (no threshold) represented as None. Meaningful only for certain ranking methods.
0
A list of memory types to include in the search (e.g., episodic, semantic).
If empty, all available types are searched.
Memory type.
semantic, episodic ["episodic", "semantic"]
Whether to enable top-level retrieval-agent orchestration for episodic search.
When false, episodic search uses direct memory retrieval.
false
true
Response
Successful Response

