Praison AI
Bot
Use Cases
University
Docs
Get Started
Find the matching section
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("How much is the ferry?", top_k=1)[0]["text"])
Press Run. The result appears here.