Knowledge Quick Start
Give your agent access to documents and get answers with citations.Installation
1. Simplest Usage (Default)
2. Multiple Sources (Array)
URL sources in
Agent(knowledge=[...]) are not yet supported in the core SDK. Since PraisonAI PR #4004 any http:// or https:// entry is logged with a warning and skipped instead of being silently dropped. The warning logs only scheme://hostname, so signed-URL tokens and credentials never leak into your logs. Fetch the page’s content yourself and pass the text, or download it and pass the local file path, if you need it indexed.3. Custom Configuration (Dict)
4. With Retrieval Options
5. Shared Knowledge (Instance)
Supported File Types
Agent(knowledge=[...]) accepts local files, directories, and raw text.
URL ingestion is not yet implemented — this applies to both
Agent(knowledge=[url]) and the standalone Knowledge.add(url), which raises
NotImplementedError. Fetch the content and pass it as text or a local file.Next Steps
Storage Options
Configure vector stores
Chat with PDFs
Build a PDF chat agent
Chunking Strategies
Optimize document splitting
RAG
Advanced retrieval

