Eval Harness
An eval harness is the software framework that runs evaluation tasks against AI models, collects model outputs, applies scoring rubrics, and produces comparable, reproducible metrics across models, prompts, and versions.
AIDOLS Research Team · Editorial standards
Full definition
A harness handles dataset loading, prompt templating, batched API calls, retries, scoring (string match, regex, LLM-as-judge, programmatic), and result storage. EleutherAI's lm-evaluation-harness is the open-source reference; alternatives include the open-source Langfuse and commercial platforms such as Braintrust and Weights & Biases. A good harness turns evaluation from a one-off notebook into a CI step that every model change must pass.
Why it matters
Without a harness, evaluation is irreproducible and slow — and therefore skipped under deadline pressure. A harness wired into CI/CD makes "did this regress?" a button click and lets engineering velocity compound rather than degrade.
Example
A team adds their golden dataset to lm-evaluation-harness and gates every prompt change behind a CI run; within a quarter, accidental regressions drop from ~1 per release to zero.
Next steps
Related terms
- Model EvaluationModel evaluation is the systematic measurement of an AI model's performance, safety, and behavior across representative tasks — using fixed benchmarks, golden datasets, human ratings, and LLM-as-judge methods — both before and after deployment.
- Golden DatasetA golden dataset is a curated, expert-validated set of inputs and reference outputs that serves as the canonical benchmark for evaluating an AI model on a specific task — the team's "ground truth" for is-this-shippable decisions.
- MLOpsMLOps is the discipline of operating machine-learning and AI systems reliably in production — covering data pipelines, model training, deployment, monitoring, drift detection, governance, and incident response — analogous to DevOps for traditional software.
- A/B Testing for MLA/B testing for ML is the practice of randomly splitting live traffic between a control model and a candidate model to measure the candidate's causal impact on real business metrics — revenue, conversion, retention, defect rate.
More training & optimization terms
- ReAct PatternReAct (Reasoning + Acting) is a prompting pattern that interleaves reasoning steps ("Thought") with tool actions ("Action") and tool results ("Observation"), letting an LLM iteratively decompose a task, query the world, and self-correct.
- Self-ConsistencySelf-consistency is a prompting technique that samples multiple chain-of-thought reasoning paths from an LLM at non-zero temperature, then selects the most common final answer by majority vote — improving reasoning accuracy at the cost of more tokens.
- Tree of ThoughtsTree of Thoughts (ToT) is a reasoning framework where an LLM explores multiple reasoning branches as a tree, generating intermediate "thoughts," evaluating partial states with the model itself, and backtracking — turning generation into deliberate search.
Source & further reading
Primary source: Gao et al. — "A framework for few-shot language model evaluation" (EleutherAI) (2023).
Citation policy: this entry is part of the AIDOLS AI Implementation Glossary and may be quoted for research, journalism, and education with attribution to aidolsgroup.com/en/glossary/eval-harness/.