CLI reference
Command-line entry point for debugging retrieval. Use attune-rag query to run a RAG query and print the grounded answer with citations, or attune-rag corpus-info to show corpus statistics.
Functions
| Function | Parameters | Returns | Description |
|---|---|---|---|
build_parser |
— | argparse.ArgumentParser |
Constructs and returns the argument parser for the attune-rag CLI. |
main |
argv: list[str] | None = None |
int |
Runs the CLI with the given argument list, or reads from sys.argv when argv is None. Returns an exit code. |
Source files
src/attune_rag/cli.py
Tags
cli, query, corpus-info