Lightweight LLM output scoring — run a batch of test cases against multiple metrics, get a scorecard.
If you are shipping an LLM pipeline, you need to know whether a prompt change made things better or just different. The harness runs the same case file against two configurations and diffs the scorecards, so a regression shows up as a named case that flipped, not as a single aggregate number that moved.
Deliberately deterministic metrics only: anything requiring a judge model belongs in a separate layer, because a metric you cannot re-run offline is not a metric.
git clone https://github.com/lxlynx/eval-harness
cd eval-harness
python3 -m unittest -v| Key | Description |
|---|---|
cases |
JSONL of input, expected output, and metadata |
metrics |
exact match, containment, normalised edit distance, regex predicate |
report |
per-metric pass rate plus a per-case diff for the failures |
- Scorecard diff mode
- CSV import for hand-written case files
- Token-cost column per case
Issues and pull requests are welcome. Please keep changes small and focused,
and add a test for any behaviour change — every repository here ships with a
runnable test suite and no third-party dependencies, so CI is just
python3 -m unittest / bash test_*.sh.