Skip to main content

ProofRAG magnifying glass logo

proofrag

PyPI Python CI License: MIT

Catch RAG regressions before they ship. Build a golden set from your own docs, run your app, score retrieval and answers separately, and fail CI when a metric drops.

Use it as a Python CLI, a GitHub Action, or an Agent Skill for Claude Code, Codex, Cursor and other agents.

proofrag wizard: build a golden set, run the app, and score it

Quick start

See a scorecard in 5 seconds, no API key needed:

pipx install "proofrag[anthropic]"        # or: pip / uv tool install / uvx
proofrag demo --out scorecard.html && open scorecard.html

Or walk through your own project with the guided wizard:

pipx install "proofrag[anthropic,tui]"
proofrag wizard

Use [openai] for OpenAI, or for a local, OpenAI-compatible server such as Ollama. In Claude Code, run /plugin marketplace add unshDee/proofrag, then /plugin install proofrag@proofrag, and ask it to "evaluate my RAG".

RAG eval scorecard

The loop

proofrag generate --corpus ./docs --out goldenset.jsonl --n 20        # golden set from your docs
proofrag validate --goldenset goldenset.jsonl --corpus ./docs         # review before committing
proofrag run --goldenset goldenset.jsonl --callable myapp.rag:answer --out predictions.jsonl
proofrag evaluate --goldenset goldenset.jsonl --predictions predictions.jsonl --out results.json
proofrag report --results results.json --out scorecard.html

Gate it in CI with the GitHub Action:

- uses: unshDee/proofrag@v0.10.0
  env:
    ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
  with:
    goldenset: eval/goldenset.jsonl
    predictions: predictions.jsonl
    baseline: eval/baseline.json    # fail if any metric regresses

Why proofrag

  • Golden sets grounded in your docs. Single-document, multi-document and unanswerable cases, validated before they become a baseline.
  • Retrieval and generation are scored separately. Recall@k, NDCG@k and MRR show whether the evidence arrived. Answer metrics show what the model did with it.
  • Reproducible runs. Every run records the judge, prompt version, matcher and dataset fingerprint, and diff refuses to compare mismatched runs.
  • Blind A/B. Compare two variants on the same cases, with answer order randomized.
  • Portable. Self-contained HTML reports. Anthropic, OpenAI or local models, or score with DeepEval, Ragas or Jev.

Docs

The evaluation loop Corpus loading, validation, prediction adapters, metrics
CI gates Score floors, baseline diffs, the GitHub Action
A/B and case studies Blind comparisons and three reproducible studies
Judges and providers Providers, env vars, DeepEval, Ragas, Jev
Agent Skill Use proofrag from Claude Code, Codex and other agents
Upgrading Baseline changes between versions

Contributing

Issues and PRs are welcome; see CONTRIBUTING.md. Security notes are in SECURITY.md. MIT licensed.

Metadata

Release files for proofrag 0.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for proofrag 0.10.0
File Size Uploaded Provenance Actions
proofrag-0.10.0.tar.gz 346.3 kB Without provenance Details for proofrag-0.10.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for proofrag 0.10.0
File Interpreter ABI Platform Actions
proofrag-0.10.0-py3-none-any.whl Python 3 none any Details for proofrag-0.10.0-py3-none-any.whl

Total release size: 406.5 kB

Release files / proofrag-0.10.0.tar.gz

Download URL proofrag-0.10.0.tar.gz
Size 346.3 kB
Tags Source
SHA-256 checksum
How to use checksums
cc3aeff0b5c774d0e5237ee9fc391b8451e4494cb4e2c3bdf5d5a91d6c3911e2
BLAKE2b-256 checksum
How to use checksums
cbf790243a718c8dc0acdff973ae6b492412e72663c74b569b422765adf74ad7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / proofrag-0.10.0-py3-none-any.whl

Download URL proofrag-0.10.0-py3-none-any.whl
Size 60.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1a75f4e508b92e4e9102a7b5dceb6cb78caacf860907504ecf48bde0fcc9eca5
BLAKE2b-256 checksum
How to use checksums
e2d84a8473e1dd358edd6952eddbb175c9ace229b640d22c3916205126d96510
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for proofrag 0.10.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page