CLI

The attune_rag.cli module is the command-line entry point for debugging retrieval — it lets you run RAG queries and inspect corpus statistics without writing any Python.

How the pieces fit together

Two public functions define the entire interface:

At runtime, main() calls build_parser() internally, so the two functions represent a single pipeline: parse → dispatch → output.

When this matters

You interact with this module whenever you need to:

Because main() accepts an explicit argv list, you can also invoke the CLI from integration tests or scripts with full control over arguments, without spawning a subprocess.

Entry point

attune_rag.cli.main is registered as the console script entry point for the package. Calling attune-rag on the command line resolves to this function.