RAG CLI
Thepraisonai rag command group provides full RAG (Retrieval-Augmented Generation) functionality from the command line.
Full RAG CLI Documentation
See the complete RAG CLI reference with all commands, options, and examples.
Quick Reference
| Command | Description |
|---|---|
praisonai rag index | Build or update an index from source documents |
praisonai rag query | One-shot question answering with citations |
praisonai rag chat | Interactive RAG chat session |
praisonai rag eval | Evaluate RAG retrieval quality |
praisonai rag serve | Start RAG as a microservice API |
Key Features
- Hybrid Retrieval: Use
--hybridto combine dense vectors with BM25 keyword search - Reranking: Use
--rerankto improve result quality - OpenAI-Compatible API: Use
--openai-compatwithrag servefor drop-in compatibility - Performance Profiling: Use
--profileto measure and optimize performance - Config Files: Use
--configfor reproducible setups with YAML configuration
Common Examples
Related
- Knowledge CLI - Indexing and search without LLM generation
- RAG Module - Python API for RAG
- RAG Quickstart - Getting started with RAG

