Knowledge Module
The Knowledge module provides a unified interface for building knowledge bases with document loading, vector storage, and intelligent retrieval.
Import
AutoReader.load() auto-wires the built-in readers on first call, so the reader example below works untouched. Call register_default_adapters() at startup only if you look up retrievers or rerankers by name from the registry (PraisonAI 4.6.156+).
Quick Example
Features
- Document loading from files, directories, URLs
- Vector storage with ChromaDB and Pinecone
- Multiple retrieval strategies (Basic, Fusion, Recursive, AutoMerge)
- Reranking for improved relevance
- CLI integration for easy management
Architecture
CLI Commands
Add Documents
Query Knowledge Base
Manage Knowledge Base
CLI Options
Example: Building a Documentation Assistant
Retrieval Strategies