CLI FAQ

What is the CLI feature?

The CLI is the command-line entry point for debugging retrieval. It lets you run RAG queries and inspect your corpus without writing any Python code.

What commands does it provide?

When should I use it?

Use the CLI when you want to run a quick query or inspect corpus statistics from the terminal. If you need to integrate retrieval into your own code programmatically, use the underlying Python API directly instead.

What are the main entry points?

Both public functions live in src/attune_rag/cli.py:

How do I debug a CLI problem?

Run the CLI-specific tests first:

pytest -k "cli" -v

If the tests pass but your command still fails, re-run with logging enabled and add a logger.debug statement at the suspected failure point to inspect the state at runtime.

Where is the source code?

Tags: cli, query, corpus-info