docs: add temporal reasoning llms coverage

This commit is contained in:
agumpandey
2026-05-13 00:06:44 +05:30
parent 5780aa58e5
commit eb0bcb840d
2 changed files with 30 additions and 64 deletions
+1
View File
@@ -185,6 +185,7 @@ If the user is on a pre-current major (Python < 2, TS < 3, or Platform `output_f
### Features - Advanced Retrieval ### Features - Advanced Retrieval
- [Advanced Retrieval](https://docs.mem0.ai/platform/features/advanced-retrieval) [Platform]: Use when the user needs keyword search, reranking, or hybrid retrieval. - [Advanced Retrieval](https://docs.mem0.ai/platform/features/advanced-retrieval) [Platform]: Use when the user needs keyword search, reranking, or hybrid retrieval.
- [Criteria-Based Retrieval](https://docs.mem0.ai/platform/features/criteria-retrieval) [Platform]: Use when targeting memories by custom criteria, not just semantic similarity. - [Criteria-Based Retrieval](https://docs.mem0.ai/platform/features/criteria-retrieval) [Platform]: Use when targeting memories by custom criteria, not just semantic similarity.
- [Temporal Reasoning](https://docs.mem0.ai/platform/features/temporal-reasoning) [Platform]: Use when time-aware searches like last week, upcoming, or right now need better result ordering.
- [Contextual Add](https://docs.mem0.ai/platform/features/contextual-add) [Platform]: Use when `add()` should consider the surrounding conversation, not just the latest turn. - [Contextual Add](https://docs.mem0.ai/platform/features/contextual-add) [Platform]: Use when `add()` should consider the surrounding conversation, not just the latest turn.
- [Custom Instructions](https://docs.mem0.ai/platform/features/custom-instructions) [Platform]: Use when tailoring what Mem0 extracts and stores on Platform. - [Custom Instructions](https://docs.mem0.ai/platform/features/custom-instructions) [Platform]: Use when tailoring what Mem0 extracts and stores on Platform.
- [Advanced Memory Operations](https://docs.mem0.ai/platform/advanced-memory-operations) [Platform]: Use when basic CRUD is not enough - batch ops, complex filters, workflows. - [Advanced Memory Operations](https://docs.mem0.ai/platform/advanced-memory-operations) [Platform]: Use when basic CRUD is not enough - batch ops, complex filters, workflows.
+28 -63
View File
@@ -417,10 +417,10 @@
"nullable": true, "nullable": true,
"description": "Additional metadata associated with the event." "description": "Additional metadata associated with the event."
}, },
"results": { "results": {
"type": "array", "type": "array",
"description": "Array of results produced by the event. For add events, this confirms the write completed; temporal reasoning enrichment runs asynchronously by default." "description": "Array of results produced by the event. For add events, this confirms the write completed; temporal reasoning enrichment runs asynchronously by default."
}, },
"created_at": { "created_at": {
"type": "string", "type": "string",
"format": "date-time", "format": "date-time",
@@ -1593,7 +1593,7 @@
}, },
{ {
"lang": "JavaScript", "lang": "JavaScript",
"source": "// To use the JavaScript SDK, install the package:\n// npm i mem0ai\n\nimport MemoryClient from 'mem0ai';\nconst client = new MemoryClient({ apiKey: \"your-api-key\" });\n\nconst query = \"Your search query here\";\n\nclient.search(query, { filters: { user_id: \"<user_id>\" } })\n .then(result => console.log(result))\n .catch(error => console.error(error));" "source": "// To use the JavaScript SDK, install the package:\n// npm i mem0ai\n\nimport MemoryClient from 'mem0ai';\nconst client = new MemoryClient({ apiKey: \"your-api-key\" });\n\nconst query = \"Your search query here\";\n\nclient.search(query, { user_id: \"<user_id>\" })\n .then(result => console.log(result))\n .catch(error => console.error(error));"
}, },
{ {
"lang": "cURL", "lang": "cURL",
@@ -1828,30 +1828,17 @@
"type": "string", "type": "string",
"description": "The extracted memory fact." "description": "The extracted memory fact."
}, },
"user_id": { "score": {
"type": "string", "type": "number",
"nullable": true, "format": "float",
"description": "External user identifier scoping this memory, if any." "minimum": 0,
"maximum": 1,
"description": "Combined multi-signal relevance score in [0, 1] (search responses only)."
}, },
"agent_id": { "metadata": {
"type": "string", "type": "object",
"nullable": true, "additionalProperties": true,
"description": "External agent identifier scoping this memory, if any." "description": "User-supplied metadata attached to the memory."
},
"app_id": {
"type": "string",
"nullable": true,
"description": "External app identifier scoping this memory, if any."
},
"run_id": {
"type": "string",
"nullable": true,
"description": "External run identifier scoping this memory, if any."
},
"metadata": {
"type": "object",
"additionalProperties": true,
"description": "User-supplied metadata attached to the memory."
}, },
"categories": { "categories": {
"type": "array", "type": "array",
@@ -1867,7 +1854,7 @@
"type": "string", "type": "string",
"format": "date-time" "format": "date-time"
} }
}, },
"required": [ "required": [
"id", "id",
"memory", "memory",
@@ -1888,19 +1875,18 @@
"next": "https://api.mem0.ai/v3/memories/?page=2&page_size=100", "next": "https://api.mem0.ai/v3/memories/?page=2&page_size=100",
"previous": null, "previous": null,
"results": [ "results": [
{ {
"id": "mem-uuid", "id": "mem-uuid",
"memory": "User moved to San Francisco from New York in January 2026", "memory": "User moved to San Francisco from New York in January 2026",
"user_id": "alice", "metadata": {},
"metadata": {}, "categories": [
"categories": [ "location"
"location" ],
], "created_at": "2026-01-15T10:30:00Z",
"created_at": "2026-01-15T10:30:00Z", "updated_at": "2026-01-15T10:30:00Z"
"updated_at": "2026-01-15T10:30:00Z" }
} ]
] }
}
} }
} }
}, },
@@ -1982,10 +1968,6 @@
"type": "string", "type": "string",
"description": "Scope memories to this agent." "description": "Scope memories to this agent."
}, },
"app_id": {
"type": "string",
"description": "Scope memories to this app."
},
"run_id": { "run_id": {
"type": "string", "type": "string",
"description": "Scope memories to this session / run." "description": "Scope memories to this session / run."
@@ -1999,17 +1981,6 @@
"type": "string", "type": "string",
"description": "Project-level instructions that guide extraction for this call." "description": "Project-level instructions that guide extraction for this call."
}, },
"multilingual": {
"type": "boolean",
"nullable": true,
"description": "Extract memories in the same language as the input."
},
"expiration_date": {
"type": "string",
"format": "date",
"nullable": true,
"description": "Optional expiration date for stored memories."
},
"infer": { "infer": {
"type": "boolean", "type": "boolean",
"default": true, "default": true,
@@ -2235,13 +2206,7 @@
{ {
"id": "mem-uuid", "id": "mem-uuid",
"memory": "User moved to San Francisco from New York in January 2026", "memory": "User moved to San Francisco from New York in January 2026",
"user_id": "alice",
"score": 0.82, "score": 0.82,
"score_breakdown": {
"semantic": 0.78,
"bm25": 0.0,
"entity": 0.0
},
"metadata": {}, "metadata": {},
"categories": [ "categories": [
"location" "location"