Recall it
Ask for the name
Search finds the saved sentence from a word in it, without you pasting the sentence again.
The question is only the word name. The result is the full sentence.
Example
from praisonai import FileMemory
memory = FileMemory(user_id="learner")
memory.add_long_term("The learner name is Nila.")
found = memory.search("name")
print(found[0]["item"]["content"])Example explained
- search — Words to look for. The saved sentence comes back.
Reference: documentation