Praison AI
Enterprise
Agents
Bot
Use Cases
University
Docs
What RAG is
Run
from praisonai import Agent from praisonai.knowledge import KeywordIndex lines = ["Tickets for the ferry cost four pounds."] index = KeywordIndex() index.add_documents(lines) question = "How much is the ferry?" line = index.query(question, top_k=1)[0]["text"] agent = Agent(instructions="Answer using only the Note.") print(agent.start(question + "\nNote: " + line))
Press Run. The result appears here.
Esc
Search in
All
Docs
University