What is an eval harness in AI?+
An eval harness is code that runs a model or AI agent on a fixed set of test cases, grades the outputs against expected results and reports the scores. It lets you compare models, prompts or harness versions on the same cases, and stops a change that makes things worse.
What is lm-evaluation-harness?+
lm-evaluation-harness is EleutherAI’s open-source framework for testing language models on hundreds of public benchmarks. It is widely used to compare models. It does not know your workflow, so it complements, rather than replaces, a task evaluation harness for your own agent.
How is an evaluation harness different from an agent harness?+
An agent harness is the software an agent runs inside: its loop, tools, context and permissions. An evaluation harness tests that agent on a set of cases and scores the results. One makes the agent work; the other proves it does.
How many test cases do we need?+
Enough to cover the common cases and the known hard ones. A few dozen catches most regressions at the start; mature sets reach hundreds. The cases should come from real work, and every production failure should become a new case.
Can a model grade another model’s answers?+
Yes, for open-ended answers, if the judge is calibrated against human grades and checked regularly. Wherever an answer can be checked by a rule — a number, a field, a tool call — a rule is cheaper and more reliable, so we use rules first.
Can you add an evaluation harness to an agent we already have?+
Yes. It is often the first thing we build for a team that already runs agents, because it turns arguments about quality into numbers and makes every later change safer.