Command Line Interface
The haiku-rag
CLI provides complete document management functionality.
Document Management
List Documents
Add Documents
From text:
From file or URL:
Get Document
Delete Document
Rebuild Database
Rebuild the database by deleting all chunks & embeddings and re-indexing all documents:
Use this when you want to change things like the embedding model or chunk size for example.
Search
Basic search:
With options:
Question Answering
Ask questions about your documents:
Ask questions with citations showing source documents:
The QA agent will search your documents for relevant information and provide a comprehensive answer. With --cite
, responses include citations showing which documents were used.
Configuration
View current configuration settings:
Server
Start the MCP server:
# HTTP transport (default)
haiku-rag serve
# stdio transport
haiku-rag serve --stdio
# SSE transport
haiku-rag serve --sse
Options
All commands support:
- --db
- Specify custom database path
- -h
- Show help for specific command
Example: