Docs Update (#2337)

This commit is contained in:
Prateek Chhikara
2025-03-08 10:30:42 -08:00
committed by GitHub
parent 92cfc1c8ef
commit d3911b92cf
4 changed files with 79 additions and 6 deletions

View File

@@ -173,6 +173,8 @@ curl -X POST "https://api.mem0.ai/v1/memories/" \
Messages passed along with `user_id`, `run_id`, or `app_id` are stored as user memories, while messages from the assistant are excluded from memory. To store messages for the assistant, use `agent_id` exclusively and avoid including other IDs, such as user_id, alongside it. This ensures the memory is properly attributed to the assistant.
</Note>
<Note>Metadata allows you to store structured information (location, timestamp, user state) with memories. Add it during creation to enable precise filtering and retrieval during searches.</Note>
#### Short-term memory for a user session
@@ -489,6 +491,7 @@ curl -X POST "https://api.mem0.ai/v1/memories/search/" \
</CodeGroup>
Use category and metadata filters:
<CodeGroup>
```python Python