You can configure it in [Character] -> [Character Memory] -> [Add New Character Card] -> [Long-term Memory].
Currently, the mem0 middleware is in use. You need to add a word embedding model to drive the memory.
For first-time use, you can add a new provider in the Model Service interface. After adding a provider, return to this page and select a [Word Embedding Model] to proceed. Word embedding model names generally include keywords such as "embedding," "ebd," or "bge."
For example: bge-large-zh, etc. Enabling this feature will slow down the agent's response speed. If you do not select any word embedding model, [Long-term Memory] will not be enabled.