[docs] add callouts and comparision to clear the problem of when to use Infer=True/False (#3738)

This commit is contained in:
Parth Sharma
2025-11-10 14:23:49 -08:00
committed by GitHub
parent 568e97d013
commit 9f921e27cb
3 changed files with 28 additions and 1 deletions
+5 -1
View File
@@ -31,6 +31,10 @@ You can see that the output of the add call is an empty list.
<Note>Only messages with the role "user" will be used for storage. Messages with roles such as "assistant" or "system" will be ignored during the storage process.</Note>
<Warning>
Direct import skips the inference pipeline, so it also skips duplicate detection. If you later send the same fact with `infer=True`, Mem0 will store a second copy. Pick one mode per memory source unless you truly want both versions.
</Warning>
## How to Retrieve Memories
You can retrieve memories using the `search` method.
@@ -98,4 +102,4 @@ client.get_all(query="What is Alice's favorite sport?", user_id="alice")
If you have any questions, please feel free to reach out to us using one of the following methods:
<Snippet file="get-help.mdx" />
<Snippet file="get-help.mdx" />