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, set theinfer parameter to False in the add method.
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.
How to Retrieve Memories
You can retrieve memories using thesearch method.
How to Retrieve All Memories
You can retrieve all memories using theget_all method.