Skip to content

About

Stdlib-only Python LLM output evaluation harness: exact match, contains, token overlap, custom scorers.

Resources

Contributing

Stars

8 stars

Watchers

0 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

Repository files navigation

eval-harness

Lightweight LLM output scoring — run a batch of test cases against multiple metrics, get a scorecard.

python deps license

About

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.

Quick start

git clone https://github.com/lxlynx/eval-harness
cd eval-harness
python3 -m unittest -v

Configuration

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

Roadmap

  • Scorecard diff mode
  • CSV import for hand-written case files
  • Token-cost column per case

Contributing

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.

License

MIT

About

Stdlib-only Python LLM output evaluation harness: exact match, contains, token overlap, custom scorers.

Resources

Contributing

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages