Praison AI
Bot
Use Cases
University
Docs
Get Started
Three checks
Run
from praisonai import KeywordIndex, FileMemory index = KeywordIndex() index.add_documents(["The secret colour of the boat is blue."]) memory = FileMemory(user_id="learner") memory.add_long_term("The learner name is Nila.") print("Name") print(memory.search("name")[0]["item"]["content"]) print("Password") print(memory.search("password") or "Not saved.") print("Boat") print(index.query("colour", top_k=1)[0]["text"])
Press Run. The result appears here.