Skip to main content

athena-eval

Executable A/B validity gates. The arithmetic half of "is this result allowed to decide anything?", as code that can fail instead of prose in a style guide.

It exists because written-down rules did not stop the mistakes they described. Judgement about what to measure stays human; whether a measured gap is allowed to be called a winner is arithmetic, and arithmetic should not be re-derived by hand each time — least of all by a party motivated to find an effect.

What it refuses to let ship

Mistake Guard
Declaring a winner when the gap is inside the noise verdict() returns cannot-separate
Counting ties as evidence in a paired comparison paired_verdict() scores only discordant pairs
Reporting a mean with no spread Stat has no mean-only form
Grading against inputs that silently arrived empty assert_inputs() prints sizes and refuses
Scoring a truncated or empty completion as an answer complete_checked()
from athena_eval import verdict, paired_verdict, assert_inputs

assert_inputs(prompt=prompt, corpus=corpus)      # prints byte counts, refuses empties
v = verdict("baseline", a_scores, "challenger", b_scores, higher_is_better=True)
print(v.cls)     # "decided" | "cannot-separate" | "VOID"

State the metric direction. higher_is_better has no safe default: a gate that guesses will confidently name the slower provider the latency winner.

Below n=10 a verdict is VOID, not weak evidence. For paired comparisons, fewer than 6 discordant pairs cannot reach p<0.05 at any split, however lopsided the totals look.

Install

pip install athena-eval                  # gates only, no dependencies
pip install "athena-eval[llm]"           # adds complete_checked, via athena-llm

complete_checked imports athena-llm lazily inside the function, so the gates themselves pull in nothing.

Metadata

Release files for athena-eval 0.1.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 athena-eval 0.1.0
File Size Uploaded
athena_eval-0.1.0.tar.gz 5.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for athena-eval 0.1.0
File Interpreter ABI Platform
athena_eval-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.6 kB

Release files / athena_eval-0.1.0.tar.gz

Download URL athena_eval-0.1.0.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
fac1a1578e863f1c3f9ce12f7436d86129e4a229449cd60cf5161f777e20931e
BLAKE2b-256 checksum
How to use checksums
cfe400ff171ec7d08697a1b9fbe0260ed6289359e30c22bd5fadfe290e8c0fa4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / athena_eval-0.1.0-py3-none-any.whl

Download URL athena_eval-0.1.0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c44cbf5ee1ca4b861c7a435cd868ee8579adaad5160ba946d954db57f5a3a70a
BLAKE2b-256 checksum
How to use checksums
e42b35dcf81360e82d616fa24977ad51d6dd92b7799fdc7cd24ca26715aa6e68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release history Release notifications | RSS feed

0.1.1

2 release files

This release

0.1.0 This release

2 release files

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