Praison AI
Enterprise
Agents
Bot
Use Cases
University
Docs
RAG
Run
from praisonaiagents.knowledge import KeywordIndex lines = [ "The library closes at six.", "The prize behind the blue door is a brass key.", "Apples grow in the orchard.", ] index = KeywordIndex() index.add_documents(lines) print(index.query("What is behind the blue door?", top_k=1)[0]["text"].strip())
Press Run. The result appears here.
Esc
Search in
All
Docs
University