30-second offline quickstart¶
This flow creates a starter dataset and mock configuration, evaluates one sample, checks a gate, and renders a report. It does not call a model or external API.
Install the verified release tag¶
This project requires Python 3.10 or newer. Check with python --version before installing.
The distribution name is ragproof-cli, while the import package and command remain ragproof. Do not run pip install ragproof: that PyPI name belongs to an unrelated project. Until the ragproof-cli Trusted Publisher is active, the fixed Git tag above is the supported install path.
Create and run an evaluation¶
mkdir ragproof-demo
cd ragproof-demo
ragproof init ragproof.yaml
ragproof validate -c ragproof.yaml
ragproof run -c ragproof.yaml -o current.json
init creates both ragproof.yaml and dataset.jsonl. The starter configuration uses the deterministic mock adapter.
Exercise the regression gate¶
Using the same run as baseline and current only verifies that the command, artifact reader, and exit-code path work. It is not a quality benchmark. In a real project, commit a reviewed known-good run as the baseline and compare later runs against it.
Render the report¶
The same command can produce Markdown, CSV, JUnit XML, or SARIF by changing the output extension.
Connect a real RAG API¶
- Start from the adapter guide or run
ragproof probeagainst a safe test endpoint. - Add retrieval gold labels and expected citations using the dataset schema.
- Run the CI tutorial to add absolute, regression, group, and coverage gates.
- Keep secrets in environment variables; persistent run and report artifacts are recursively redacted when
redact_sensitiveis enabled.