RAG Agent CLI
Build and run RAG agents from the command line.Commands
Create Knowledge Base
Query Knowledge Base
Run RAG Agent
Options
| Option | Type | Default | Description |
|---|---|---|---|
--knowledge | string | - | Knowledge base name or path |
--top-k | number | 5 | Number of results to retrieve |
--min-score | number | 0.7 | Minimum similarity score |
--rerank | boolean | false | Enable reranking |
--citations | string | inline | Citation format |
Examples
Build Knowledge Base from Directory
RAG Chat Session
Export Knowledge Base
Environment Variables
| Variable | Required | Description |
|---|---|---|
OPENAI_API_KEY | Yes | For embeddings |
PINECONE_API_KEY | For Pinecone | Pinecone API key |
Related Commands
praisonai-ts knowledge list- List knowledge basespraisonai-ts knowledge delete- Delete knowledge basepraisonai-ts knowledge stats- Show statistics

