Praison AI
Bot
Use Cases
University
Docs
Get Started
What RAG is
Run
from praisonai import KeywordIndex lines = [ "Apples grow on trees in the orchard.", "The secret colour of the boat is blue.", "Tickets for the ferry cost four pounds.", ] index = KeywordIndex() index.add_documents(lines) print(index.query("What colour is the boat?", top_k=1)[0]["text"])
Press Run. The result appears here.