Direct Import
Bypass the memory deduction phase and directly store pre-defined memories for efficient retrieval
🔐 Mem0 is now SOC 2 and HIPAA compliant! We're committed to the highest standards of data security and privacy, enabling secure memory for enterprises, healthcare, and beyond. Learn more
How to use Direct Import?
The Direct Import feature allows users to skip the memory deduction phase and directly input pre-defined memories into the system for storage and retrieval.
To enable this feature, you need to set the infer
parameter to False
in the add
method.
You can see that the output of add call is an empty list.
How to retrieve memories?
You can retrieve memories using the search
method.
How to retrieve all memories?
You can retrieve all memories using the get_all
method.
If you have any questions, please feel free to reach out to us using one of the following methods: