@@ -204,6 +204,12 @@ npm install praisonai
204204| ↳ Add Custom Knowledge | [ Example] ( examples/python/concepts/knowledge-agents.py ) | [ 📖] ( https://docs.praison.ai/features/knowledge ) |
205205| ↳ RAG Agents | [ Example] ( examples/python/concepts/rag-agents.py ) | [ 📖] ( https://docs.praison.ai/features/rag ) |
206206| ↳ Chat with PDF Agents | [ Example] ( examples/python/concepts/chat-with-pdf.py ) | [ 📖] ( https://docs.praison.ai/features/chat-with-pdf ) |
207+ | ↳ Data Readers (PDF, DOCX, etc.) | [ CLI] ( #knowledge-cli ) | [ 📖] ( https://docs.praison.ai/api/praisonai/knowledge-readers-api ) |
208+ | ↳ Vector Store Selection | [ CLI] ( #knowledge-cli ) | [ 📖] ( https://docs.praison.ai/api/praisonai/knowledge-vector-store-api ) |
209+ | ↳ Retrieval Strategies | [ CLI] ( #knowledge-cli ) | [ 📖] ( https://docs.praison.ai/api/praisonai/knowledge-retrieval-api ) |
210+ | ↳ Rerankers | [ CLI] ( #knowledge-cli ) | [ 📖] ( https://docs.praison.ai/api/praisonai/knowledge-reranker-api ) |
211+ | ↳ Index Types (Vector/Keyword/Hybrid) | [ CLI] ( #knowledge-cli ) | [ 📖] ( https://docs.praison.ai/api/praisonai/knowledge-index-api ) |
212+ | ↳ Query Engines (Sub-Question, etc.) | [ CLI] ( #knowledge-cli ) | [ 📖] ( https://docs.praison.ai/api/praisonai/knowledge-query-engine-api ) |
207213| ** 🔬 Research & Intelligence** | | |
208214| ↳ Deep Research Agents | [ Example] ( examples/python/agents/research-agent.py ) | [ 📖] ( https://docs.praison.ai/agents/deep-research ) |
209215| ↳ Query Rewriter Agent | [ Example] ( #5-query-rewriter-agent ) | [ 📖] ( https://docs.praison.ai/agents/query-rewriter ) |
@@ -2641,6 +2647,84 @@ PraisonAI provides zero-dependency persistent memory for agents. For detailed ex
26412647
26422648---
26432649
2650+ # # 📚 Knowledge & Retrieval (RAG)
2651+
2652+ PraisonAI provides a complete knowledge stack for building RAG applications with multiple vector stores, retrieval strategies, rerankers, and query modes.
2653+
2654+ # ## Knowledge CLI Commands
2655+
2656+ | Command | Description |
2657+ |---------|-------------|
2658+ | `praisonai knowledge add <file\|dir\|url>` | Add documents to knowledge base |
2659+ | `praisonai knowledge query <question>` | Query knowledge base with RAG |
2660+ | `praisonai knowledge list` | List indexed documents |
2661+ | `praisonai knowledge clear` | Clear knowledge base |
2662+ | `praisonai knowledge stats` | Show knowledge base statistics |
2663+
2664+ # ## Knowledge CLI Options
2665+
2666+ | Option | Values | Description |
2667+ |--------|--------|-------------|
2668+ | `--vector-store` | `memory`, `chroma`, `pinecone`, `qdrant`, `weaviate` | Vector store backend |
2669+ | `--retrieval` | `basic`, `fusion`, `recursive`, `auto_merge` | Retrieval strategy |
2670+ | `--reranker` | `simple`, `llm`, `cross_encoder`, `cohere` | Reranking method |
2671+ | `--index-type` | `vector`, `keyword`, `hybrid` | Index type |
2672+ | `--query-mode` | `default`, `sub_question`, `summarize` | Query mode |
2673+
2674+ # ## Knowledge CLI Examples
2675+
2676+ ` ` ` bash
2677+ # Add documents
2678+ praisonai knowledge add ./docs/
2679+ praisonai knowledge add https://example.com/page.html
2680+ praisonai knowledge add "*.pdf"
2681+
2682+ # Query with advanced options
2683+ praisonai knowledge query "How to authenticate?" --retrieval fusion --reranker llm
2684+
2685+ # Full advanced query
2686+ praisonai knowledge query "authentication flow" \
2687+ --vector-store chroma \
2688+ --retrieval fusion \
2689+ --reranker llm \
2690+ --index-type hybrid \
2691+ --query-mode sub_question
2692+ ` ` `
2693+
2694+ # ## Knowledge SDK Usage
2695+
2696+ ` ` ` python
2697+ from praisonaiagents import Agent, Knowledge
2698+
2699+ # Simple usage with Agent
2700+ agent = Agent(
2701+ name="Research Assistant",
2702+ knowledge=["docs/manual.pdf", "data/faq.txt"],
2703+ knowledge_config={
2704+ "vector_store": {"provider": "chroma"}
2705+ }
2706+ )
2707+ response = agent.chat("How do I authenticate?")
2708+
2709+ # Direct Knowledge usage
2710+ knowledge = Knowledge()
2711+ knowledge.add("document.pdf")
2712+ results = knowledge.search("authentication", limit=5)
2713+ ` ` `
2714+
2715+ # ## Knowledge Stack Features Table
2716+
2717+ | Feature | Description | SDK Docs | CLI Docs |
2718+ |---------|-------------|----------|----------|
2719+ | **Data Readers** | Load PDF, Markdown, Text, HTML, URLs | [SDK](/docs/sdk/praisonaiagents/knowledge/protocols) | [CLI](/docs/cli/knowledge) |
2720+ | **Vector Stores** | ChromaDB, Pinecone, Qdrant, Weaviate, In-Memory | [SDK](/docs/sdk/praisonaiagents/knowledge/protocols) | [CLI](/docs/cli/knowledge) |
2721+ | **Retrieval Strategies** | Basic, Fusion (RRF), Recursive, Auto-Merge | [SDK](/docs/sdk/praisonaiagents/knowledge/protocols) | [CLI](/docs/cli/knowledge) |
2722+ | **Rerankers** | Simple, LLM, Cross-Encoder, Cohere | [SDK](/docs/sdk/praisonaiagents/knowledge/protocols) | [CLI](/docs/cli/knowledge) |
2723+ | **Index Types** | Vector, Keyword (BM25), Hybrid | [SDK](/docs/sdk/praisonaiagents/knowledge/protocols) | [CLI](/docs/cli/knowledge) |
2724+ | **Query Engines** | Default, Sub-Question, Summarize | [SDK](/docs/sdk/praisonaiagents/knowledge/protocols) | [CLI](/docs/cli/knowledge) |
2725+
2726+ ---
2727+
26442728# # 🔬 Advanced Features
26452729
26462730# ## Research & Intelligence
@@ -2755,6 +2839,44 @@ agent.chat("Hello!") # Auto-persists messages, runs, traces
27552839| `praisonai persistence migrate` | Apply schema migrations |
27562840| `praisonai persistence status` | Show schema status |
27572841
2842+ # ## Knowledge CLI Commands {#knowledge-cli}
2843+
2844+ | Command | Description |
2845+ |---------|-------------|
2846+ | `praisonai knowledge add <source>` | Add file, directory, URL, or glob pattern |
2847+ | `praisonai knowledge query "<question>"` | Query knowledge base with RAG |
2848+ | `praisonai knowledge list` | List indexed documents |
2849+ | `praisonai knowledge clear` | Clear knowledge base |
2850+ | `praisonai knowledge stats` | Show knowledge base statistics |
2851+
2852+ **Knowledge Query Flags:**
2853+
2854+ | Flag | Values | Default |
2855+ |------|--------|---------|
2856+ | `--vector-store` | `memory`, `chroma`, `pinecone`, `qdrant`, `weaviate` | `chroma` |
2857+ | `--retrieval-strategy` | `basic`, `fusion`, `recursive`, `auto_merge` | `basic` |
2858+ | `--reranker` | `none`, `simple`, `llm`, `cross_encoder`, `cohere` | `none` |
2859+ | `--index-type` | `vector`, `keyword`, `hybrid` | `vector` |
2860+ | `--query-mode` | `default`, `sub_question`, `summarize` | `default` |
2861+ | `--workspace` | Path to workspace directory | Current dir |
2862+ | `--session` | Session ID for persistence | - |
2863+
2864+ **Examples:**
2865+
2866+ ` ` ` bash
2867+ # Add documents
2868+ praisonai knowledge add document.pdf
2869+ praisonai knowledge add ./docs/
2870+ praisonai knowledge add "*.md"
2871+
2872+ # Query with options
2873+ praisonai knowledge query "How to authenticate?" \
2874+ --vector-store chroma \
2875+ --retrieval-strategy fusion \
2876+ --reranker simple \
2877+ --query-mode sub_question
2878+ ` ` `
2879+
27582880# ## Databases Table
27592881
27602882| Database | Store Type | Install | Example | Docs |
0 commit comments