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.1

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.1
File Size Uploaded Provenance Actions
proofrag-0.10.1.tar.gz 346.4 kB Without provenance Details for proofrag-0.10.1.tar.gz

Built distribution (wheel)

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

Total release size: 406.6 kB

Release files / proofrag-0.10.1.tar.gz

Download URL proofrag-0.10.1.tar.gz
Size 346.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2daaecd990d5451288ee3f9714fb069afa6884eb96b487c4dc0e7614d8a3bcea
BLAKE2b-256 checksum
How to use checksums
25305ac642f7e1f73d8764f58ef9c7ab12e39acd2bae1eb10305874734e4ff41
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.1-py3-none-any.whl

Download URL proofrag-0.10.1-py3-none-any.whl
Size 60.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
586b8e1395d0a70883c79be569925d8681e29b700576cda718ca9718a7f91f15
BLAKE2b-256 checksum
How to use checksums
a79ea7e6f68cfa7ba92f23923558a539f268ea0dd8848de793001fda9933432d
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.1

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