Skip to main content

CLI tool that evaluates LLM outputs from production logs against a dual-dimension rubric.

Project description

eval-harness

A Python CLI that evaluates LLM outputs from production logs against a dual-dimension rubric (faithfulness + task completion).

Install

pip install -e ".[dev]"

Quickstart

export OPENRIXER_API_KEY=sk-or-...
eval-harness run path/to/logs.jsonl --judge meta-llama/llama-3.1-8b-instruct:free

Input JSONL schema:

{"input": "user prompt", "output": "model response", "reference": "optional ground truth"}

Commands

  • eval-harness run <file> — ingest, evaluate, and report
  • eval-harness judges — list free judge models (cached in ~/.eval-harness/judges.json)
  • eval-harness report --run-id UUID — show a stored run
  • eval-harness export --run-id UUID --format json|csv --output-file PATH
  • eval-harness cache [--stats] [--clear]

Exit codes: 0 all pass, 1 any failures, 2 evaluator error.

CI/CD example

- run: pip install eval-harness
- run: OPENRIXER_API_KEY=${{ secrets.OPENRIXER_API_KEY }} eval-harness run eval/cases.jsonl --pass-threshold 0.7

Development

pip install -e ".[dev]"
ruff check src tests && ruff format --check src tests
pytest tests/ -v --cov=src

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

llm_eval_harness-0.1.0.tar.gz (28.6 kB view details)

Uploaded Source

Built Distribution

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

llm_eval_harness-0.1.0-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: llm_eval_harness-0.1.0.tar.gz
  • Upload date:
  • Size: 28.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for llm_eval_harness-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d58779c454fda0bad4ab7eae2b959f3f1fa78232da07a496a8af8f5df2e5bdc3
MD5 d004f8f46cc6f9d6cde467369c5461f0
BLAKE2b-256 39e450a333b9799bb66616f96c416475bb6b6fc42d11962cf4fea4862edd6de3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llm_eval_harness-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a8ffcc3d0a6918b7532d71f50ada80d43929878fa2848e57ef5368611884eec5
MD5 88b43576e5b123e5d0fd3c64942b4af1
BLAKE2b-256 1a1e4cc25a85002f0fabae4ba252f46a55a4f69b866e4ca4a0e1948ee8a3e648

See more details on using hashes here.

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