Search memory entries
Search memory entries - Low latency for conversational
Body ParametersJSONExpand Collapse
If true, aggregates information from multiple memories to create new synthesized memories. The result will be a mix of aggregated and non-aggregated memories, reranked by relevance to the query. Works in conjunction with reranking.
Optional tag this search should be containerized by. This can be an ID for your user, a project ID, or any other identifier you wish to use to filter memories.
Filter search results by filepath. Exact match for full paths, prefix match if ending with /
filters: optional object { OR } or object { AND } Optional filters to apply to the search. Can be a JSON string or Query object.
Optional filters to apply to the search. Can be a JSON string or Query object.
Or object { OR }
OR: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } Array of OR filter expressions
Array of OR filter expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
OR: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } OR: Array of conditions or nested expressions
OR: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
OR: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } OR: Array of conditions or nested expressions
OR: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
OR: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } OR: Array of conditions or nested expressions
OR: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
OR: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } OR: Array of conditions or nested expressions
OR: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
And object { AND }
AND: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } AND: Array of conditions or nested expressions
AND: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
And object { AND }
AND: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } AND: Array of conditions or nested expressions
AND: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
OR: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } OR: Array of conditions or nested expressions
OR: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
And object { AND }
AND: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } AND: Array of conditions or nested expressions
AND: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
And object { AND }
AND: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } AND: Array of conditions or nested expressions
AND: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
OR: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } OR: Array of conditions or nested expressions
OR: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
OR: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } OR: Array of conditions or nested expressions
OR: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
And object { AND }
AND: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } AND: Array of conditions or nested expressions
AND: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
And object { AND }
AND: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } AND: Array of conditions or nested expressions
AND: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
OR: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } OR: Array of conditions or nested expressions
OR: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
And object { AND }
AND: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } AND: Array of conditions or nested expressions
AND: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
And object { AND }
AND: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } AND: Array of conditions or nested expressions
AND: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
OR: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } OR: Array of conditions or nested expressions
OR: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
OR: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } OR: Array of conditions or nested expressions
OR: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
OR: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } OR: Array of conditions or nested expressions
OR: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
And object { AND }
AND: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } AND: Array of conditions or nested expressions
AND: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
And object { AND }
AND: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } AND: Array of conditions or nested expressions
AND: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
OR: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } OR: Array of conditions or nested expressions
OR: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
And object { AND }
AND: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } AND: Array of conditions or nested expressions
AND: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
And object { AND }
AND: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } AND: Array of conditions or nested expressions
AND: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
OR: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } OR: Array of conditions or nested expressions
OR: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
OR: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } OR: Array of conditions or nested expressions
OR: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
And object { AND }
AND: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } AND: Array of conditions or nested expressions
AND: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
And object { AND }
AND: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } AND: Array of conditions or nested expressions
AND: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
OR: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } OR: Array of conditions or nested expressions
OR: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
And object { AND }
AND: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } AND: Array of conditions or nested expressions
AND: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
And object { AND }
AND: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } Array of AND filter expressions
Array of AND filter expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
OR: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } OR: Array of conditions or nested expressions
OR: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
OR: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } OR: Array of conditions or nested expressions
OR: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
OR: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } OR: Array of conditions or nested expressions
OR: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
OR: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } OR: Array of conditions or nested expressions
OR: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
And object { AND }
AND: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } AND: Array of conditions or nested expressions
AND: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
And object { AND }
AND: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } AND: Array of conditions or nested expressions
AND: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
OR: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } OR: Array of conditions or nested expressions
OR: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
And object { AND }
AND: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } AND: Array of conditions or nested expressions
AND: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
And object { AND }
AND: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } AND: Array of conditions or nested expressions
AND: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
OR: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } OR: Array of conditions or nested expressions
OR: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
OR: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } OR: Array of conditions or nested expressions
OR: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
And object { AND }
AND: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } AND: Array of conditions or nested expressions
AND: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
And object { AND }
AND: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } AND: Array of conditions or nested expressions
AND: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
OR: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } OR: Array of conditions or nested expressions
OR: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
And object { AND }
AND: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } AND: Array of conditions or nested expressions
AND: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
And object { AND }
AND: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } AND: Array of conditions or nested expressions
AND: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
OR: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } OR: Array of conditions or nested expressions
OR: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
OR: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } OR: Array of conditions or nested expressions
OR: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
OR: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } OR: Array of conditions or nested expressions
OR: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
And object { AND }
AND: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } AND: Array of conditions or nested expressions
AND: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
And object { AND }
AND: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } AND: Array of conditions or nested expressions
AND: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
OR: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } OR: Array of conditions or nested expressions
OR: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
And object { AND }
AND: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } AND: Array of conditions or nested expressions
AND: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
And object { AND }
AND: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } AND: Array of conditions or nested expressions
AND: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
OR: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } OR: Array of conditions or nested expressions
OR: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
OR: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } OR: Array of conditions or nested expressions
OR: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
And object { AND }
AND: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } AND: Array of conditions or nested expressions
AND: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
And object { AND }
AND: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } AND: Array of conditions or nested expressions
AND: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
OR: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } OR: Array of conditions or nested expressions
OR: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
And object { AND }
AND: array of object { key, value, filterType, 3 more } or object { OR } or object { AND } AND: Array of conditions or nested expressions
AND: Array of conditions or nested expressions
object { key, value, filterType, 3 more } A single filter condition based on metadata, numeric values, array contents, or string matching
A single filter condition based on metadata, numeric values, array contents, or string matching
Or object { OR }
include: optional object { chunks, documents, forgottenMemories, 2 more }
DEPRECATED: Use searchMode=‘hybrid’ instead. If true, automatically switches to hybrid mode. This field is kept for backward compatibility only.
If true, rerank the results based on the query. This is helpful if you want to ensure the most relevant results are returned.
If true, rewrites the query to make it easier to find documents. This increases the latency by about 400ms
ReturnsExpand Collapse
results: array of object { id, metadata, similarity, 9 more } Array of matching memory entries and chunks with similarity scores. Contains memory results when searchMode=‘memories’, both memory and chunk results when searchMode=‘hybrid’, or only chunk results when searchMode=‘documents’. Memory results have ‘memory’ field, chunk results have ‘chunk’ field. BACKWARD COMPATIBILITY: When using deprecated include.chunks=true, only memory results are returned with chunks embedded in them (old format).
Array of matching memory entries and chunks with similarity scores. Contains memory results when searchMode=‘memories’, both memory and chunk results when searchMode=‘hybrid’, or only chunk results when searchMode=‘documents’. Memory results have ‘memory’ field, chunk results have ‘chunk’ field. BACKWARD COMPATIBILITY: When using deprecated include.chunks=true, only memory results are returned with chunks embedded in them (old format).
chunks: optional array of object { content, documentId, position, score } Relevant chunks from associated documents (only included when chunks=true)
Relevant chunks from associated documents (only included when chunks=true)
context: optional object { children, parents, related } Object containing version history (parents/children via updates) and related memories (extends/derives)
Object containing version history (parents/children via updates) and related memories (extends/derives)
children: optional array of object { memory, relation, updatedAt, 2 more }
parents: optional array of object { memory, relation, updatedAt, 2 more }
documents: optional array of object { id, createdAt, updatedAt, 4 more } Associated documents for this memory entry
Associated documents for this memory entry
Search memory entries
curl https://api.supermemory.ai/v4/search \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $SUPERMEMORY_API_KEY" \
-d '{
"q": "what are the API rate limits",
"containerTag": "user_alex",
"limit": 10,
"searchMode": "memories",
"threshold": 0.5
}'{
"results": [
{
"id": "mem_abc123",
"metadata": {
"source": "bar",
"confidence": "bar"
},
"similarity": 0.89,
"updatedAt": "updatedAt",
"chunk": "This is a chunk of content from a document...",
"chunks": [
{
"content": "This is a chunk of content from the document...",
"documentId": "doc_xyz789",
"position": 0,
"score": 0.85
}
],
"context": {
"children": [
{
"memory": "Later version: API rate limit increased to 100 req/min on the free tier.",
"relation": "extends",
"updatedAt": "updatedAt",
"metadata": {
"foo": "bar"
},
"version": 1
}
],
"parents": [
{
"memory": "Earlier version: API rate limit is 50 req/min on the free tier.",
"relation": "updates",
"updatedAt": "updatedAt",
"metadata": {
"foo": "bar"
},
"version": -1
}
],
"related": [
{
"memory": "memory",
"relation": "extends",
"updatedAt": "updatedAt",
"metadata": {
"foo": "bar"
}
}
]
},
"documents": [
{
"id": "doc_xyz789",
"createdAt": "createdAt",
"updatedAt": "updatedAt",
"metadata": {
"source": "bar",
"language": "bar"
},
"summary": "API rate limit policy: 100 req/min free, 1000 req/min pro.",
"title": "API Rate Limiting Policy",
"type": "web"
}
],
"filepath": "filepath",
"isAggregated": false,
"memory": "The user prefers detailed API responses over minimal ones.",
"version": 3
}
],
"timing": 245,
"total": 5
}Returns Examples
{
"results": [
{
"id": "mem_abc123",
"metadata": {
"source": "bar",
"confidence": "bar"
},
"similarity": 0.89,
"updatedAt": "updatedAt",
"chunk": "This is a chunk of content from a document...",
"chunks": [
{
"content": "This is a chunk of content from the document...",
"documentId": "doc_xyz789",
"position": 0,
"score": 0.85
}
],
"context": {
"children": [
{
"memory": "Later version: API rate limit increased to 100 req/min on the free tier.",
"relation": "extends",
"updatedAt": "updatedAt",
"metadata": {
"foo": "bar"
},
"version": 1
}
],
"parents": [
{
"memory": "Earlier version: API rate limit is 50 req/min on the free tier.",
"relation": "updates",
"updatedAt": "updatedAt",
"metadata": {
"foo": "bar"
},
"version": -1
}
],
"related": [
{
"memory": "memory",
"relation": "extends",
"updatedAt": "updatedAt",
"metadata": {
"foo": "bar"
}
}
]
},
"documents": [
{
"id": "doc_xyz789",
"createdAt": "createdAt",
"updatedAt": "updatedAt",
"metadata": {
"source": "bar",
"language": "bar"
},
"summary": "API rate limit policy: 100 req/min free, 1000 req/min pro.",
"title": "API Rate Limiting Policy",
"type": "web"
}
],
"filepath": "filepath",
"isAggregated": false,
"memory": "The user prefers detailed API responses over minimal ones.",
"version": 3
}
],
"timing": 245,
"total": 5
}