Skip to main content

An auditor for LLM evaluations — tells you whether you can trust your eval results.

Project description

EvalTrust

An auditor for LLM evaluations.
It doesn't tell you how good your model is — it tells you whether you can trust the evaluation you used to decide.

Install · Quick start · What it checks · Docs · Contributing

License: MIT Python 3.10+ CI


Teams spend real money evaluating models, then look at two numbers:

Model A: 84.7
Model B: 86.2   ->  ship B

That single comparison hides a dozen assumptions. Maybe the difference isn't statistically significant. Maybe the sample is too small. Maybe another judge disagrees, or the benchmark is already saturated. Most eval tools tell you what your score is. EvalTrust tells you whether you should believe it.

It works like a financial audit: bookkeeping answers "what are the numbers?"; an audit answers "can you trust them?" EvalTrust is the audit for evaluations. It runs after your existing eval tool — it doesn't replace it.

Example

$ evaltrust audit gpt4_run.json claude_run.json
EvalTrust Audit
Comparing claude-3 vs gpt-4  · 150 examples · source: deepeval+deepeval
╭─ Verdict ────────────────────────────────────────────────────────────────────╮
│ Low Confidence                                                               │
│ The evidence does not support the conclusion. Do not ship on this result     │
│ as-is — resolve the issues below first.                                      │
╰──────────────────────────────────────────────────────────────────────────────╯
 ✗ Improvement is not statistically significant   Statistical Validity
 ⚠ 95% confidence interval overlaps zero          Statistical Validity
 ⚠ Effect size is negligible                      Statistical Validity
 ✓ Benchmark has headroom                         Benchmark Health

  ✗ Improvement is not statistically significant
    Why it matters   A raw gap means nothing until you rule out chance.
    How we detected  A paired permutation test over 150 examples gave p = 0.41.
    How to fix       Do not claim a winner yet. Collect more examples first.

Two runs at 71% and 74% — a three-point "win" that is actually noise. EvalTrust catches it before it becomes a shipping decision.

Installation

Note: EvalTrust is not yet published to PyPI. Once it is, installation will be a single command:

pip install evaltrust

Until then, install from source:

git clone https://github.com/k-dickinson/evaltrust
cd evaltrust
pip install -e .

Quick start

  1. Run your evaluation with whatever tool you already use (DeepEval, Promptfoo, LangSmith, OpenEvals, or a plain CSV).

  2. Point EvalTrust at the output:

    # A file that already compares two or more models:
    evaltrust audit results.json
    
    # Two single-model runs (e.g. two DeepEval runs), paired by example id:
    evaltrust audit gpt4_run.json claude_run.json
    
  3. Read the verdict. Fix what it flags. Re-run.

Useful flags:

Flag Effect
--strict Exit with a non-zero status on a Low-Confidence verdict (use it to gate CI).
--model-a, --model-b Choose which two models to compare, or label the two files.
--alpha Significance level (default 0.05).
--seed Seed for the resampling (results are deterministic; change only to stress-test).

What it checks

EvalTrust audits four pillars of trust and ends in one plain-language verdict — High, Moderate, or Low Confidence. There is no arbitrary aggregate score.

Pillar The question it answers
Statistical Validity Is the gap real, large enough to matter, and was the sample big enough to detect it? Paired permutation test, bootstrap confidence interval, Cohen's d, and power analysis.
Benchmark Health Can the benchmark even separate these models, or is it saturated / flat?
Repeatability If you reran the evaluation, would the winner stay the winner? Uses repeated-run data when the file contains it.
Judge Reliability Would a different judge reach the same verdict? Uses multi-judge data when the file contains it.

Every finding follows the same rule — why it matters, how we detected it, and how to fix it. Checks that need extra data (repeated runs, multiple judges) don't guess when it's missing; they tell you how to generate it.

See docs/checks.md for the methods and thresholds behind each one.

Supported inputs

You never write an EvalTrust-specific format. It reads what your tool already produced and auto-detects the shape:

  • Promptfoo results (several providers compared across test cases)
  • Nested JSON{"models": [...], "examples": [{"id", "scores": {...}}]}
  • Record lists — JSON like [{"id", "model", "score"}, ...]
  • CSV — long (id,model,score) or wide (id,gpt,claude)

Single-model tools (DeepEval, LangSmith, OpenEvals) evaluate one model per run, so you pass two files and EvalTrust pairs them. Details in docs/input-formats.md.

How it works

your eval output ──▶ auto-detect + adapter ──▶ canonical model ──▶ audit ──▶ verdict

Adapters map every format into one internal representation, so the statistics are written once and work everywhere. Every statistical method is validated in the test suite against an independent reference (scipy and statsmodels), and all resampling is seeded, so the auditor is itself reproducible. See docs/architecture.md.

Roadmap

  • Now: offline CLI, four pillars, terminal report.
  • Next: dedicated adapters for more tools, a Python API (evaltrust.audit(...)), and an optional HTML report.
  • Later: opt-in orchestration for the pillars that need to generate evidence (robustness perturbations, extra judges) and a provenance/reproducibility check.

Contributing

Contributions are welcome — new format adapters and additional checks especially. Start with CONTRIBUTING.md.

License

MIT.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

evaltrust-0.1.0.tar.gz (51.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

evaltrust-0.1.0-py3-none-any.whl (34.2 kB view details)

Uploaded Python 3

File details

Details for the file evaltrust-0.1.0.tar.gz.

File metadata

  • Download URL: evaltrust-0.1.0.tar.gz
  • Upload date:
  • Size: 51.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for evaltrust-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c84754ffa02e94c16ce9ba6f63551ad0e3a176c2723e996b1f8b62f211403515
MD5 284e03ed738d711eb8a7ef30a9ec1145
BLAKE2b-256 35c6778c89ad2a1160943401c4e830cc250398cae81e683dc6e268fae559a86a

See more details on using hashes here.

Provenance

The following attestation bundles were made for evaltrust-0.1.0.tar.gz:

Publisher: publish.yml on k-dickinson/evaltrust

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file evaltrust-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: evaltrust-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 34.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for evaltrust-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5fdae975b2a10a194db057a263096d4dcef73090210186817e9a59f3f9f08579
MD5 c604372e45bf1371b94c48027cafc3cd
BLAKE2b-256 d7082daadff7d40ed4ace95b78b6770a3041208d4fc47bfcd3a2fe06ff236d35

See more details on using hashes here.

Provenance

The following attestation bundles were made for evaltrust-0.1.0-py3-none-any.whl:

Publisher: publish.yml on k-dickinson/evaltrust

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page