Praison AI
Enterprise
Agents
Bot
Use Cases
University
Docs
1-line Knowledge, citations, and AutoRagAgent
Run
from praisonai import Agent from praisonai.knowledge import KeywordIndex idx = KeywordIndex() idx.add_documents([ '[DOC-1] Enterprise SLA guarantees 99.95% monthly uptime.', '[DOC-2] Standard support responds within 1 business day.', ]) hit = idx.query('uptime SLA', top_k=1)[0]['text'] cited = Agent(instructions='Answer using ONLY the provided Source and include its [DOC-x] tag.', output='silent') print(cited.start(f'Source: {hit}\nQuestion: What is the uptime SLA?'))
Press Run. The result appears here.
Esc
Search in
All
Docs
University