Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
Knowledge Base Setup
Add domain-specific knowledge to your agents using knowledge bases.
Quick Start
from praisonaiagents import Agent, Knowledge
# Create knowledge base from files
knowledge = Knowledge(
sources=["docs/", "data.pdf", "faq.txt"]
)
# Create agent with knowledge
agent = Agent(
name="Support Agent",
instructions="Answer questions using the knowledge base.",
knowledge=knowledge
)
result = agent.start("What is your refund policy?")
Knowledge Sources
From Files
knowledge = Knowledge(
sources=[
"documents/", # Directory
"manual.pdf", # PDF
"faq.md", # Markdown
"data.csv" # CSV
]
)
From URLs
knowledge = Knowledge(
sources=[
"https://docs.example.com/api",
"https://example.com/faq"
]
)
From Text
knowledge = Knowledge(
sources=[],
texts=[
"Company policy: All refunds within 30 days.",
"Support hours: 9 AM - 5 PM EST"
]
)
Configuration
knowledge = Knowledge(
sources=["docs/"],
chunk_size=500, # Characters per chunk
chunk_overlap=50, # Overlap between chunks
embedding_model="text-embedding-3-small",
vector_store="chroma", # or "faiss", "qdrant"
top_k=5 # Results to retrieve
)