LLM evaluation is how you test whether a language model, or an app built on one, does its job well enough. You give the system real inputs, score its outputs against rules you set in advance, and track those scores over time. Each of those tests is called an eval. Anthropic's definition is short: give an AI an input, then apply grading logic to its output to measure success.
Evals matter because model output varies. OpenAI's evaluation guide notes that models sometimes produce different output from the same input, so traditional software tests aren't enough on their own.
What LLM evaluation measures
The word evals covers several things. OpenAI's guide separates industry benchmarks such as MMLU, which compare models in isolation, from standard numerical scores such as ROUGE and BERTScore, and from the specific tests you write to measure your own application.
Public benchmarks help you shortlist models. They can't tell you whether a model pulls the right fields from your contracts. For that you need tests built around your own task and your own definition of a good result.
Offline and production evaluation
Offline evaluation runs before you ship. LangSmith's documentation describes it as running evaluations on curated datasets during development to compare versions, benchmark performance and catch regressions.
Production evaluation, which LangSmith calls online evaluation, scores real user interactions as they happen. Live traffic has no reference answer, so these checks rely on what you can verify without one, such as format validation, safety checks and reference-free LLM-as-a-judge scoring.
You need both. Offline evals tell you whether a change is safe to ship, and production checks show what the offline set missed. When a production check catches a failure, add that case to the offline set.
Anthropic draws a related line between capability evals and regression evals. Capability evals target tasks the system still struggles with, so they start at a low pass rate. Regression evals check that it still handles everything it used to and should pass close to 100% of the time. A drop there means something broke.
Build the eval set from production traces
The common mistake is testing the inputs someone imagined instead of the ones the system gets. OpenAI lists eval datasets that don't reproduce production traffic as an anti-pattern, and advises logging everything so you can mine your logs for good eval cases.
A production trace is the record of one piece of work: the input, context, prompt, tool calls, the model's answer and what happened next. A trace becomes an eval case once someone pairs it with a judgment, such as a label, a rubric score, a passing test or a reviewer's correction.
You don't need thousands to start. Anthropic writes that 20 to 50 simple tasks drawn from real failures is a great start, and that evals get harder to build the longer you wait. A few rules keep the set honest.
Write each case so that two domain experts would independently reach the same pass or fail verdict. Anthropic uses this as its test of a well-specified task.
Balance the set. Test cases where a behavior should happen and cases where it shouldn't, or you'll tune the system toward doing it everywhere.
Keep a held-out slice that no prompt or model change is tuned against, so a better score reflects a real improvement.
Let the people who do the work define what correct means. A support lead or an underwriter knows which mistakes matter, and the eval should score those mistakes.
Metrics and graders
A grader is the logic that scores an output. Anthropic groups graders into three types, and most eval suites combine them.
Code checks cover exact matches, regular expressions, schema validation, unit tests and checks on which tools were called. Anthropic rates them fast, cheap, objective and reproducible, but brittle when a valid answer doesn't match the expected pattern.
Human review means domain experts, spot checks or A/B tests. It's the most trusted signal and the one used to calibrate automated graders, but it's slow and expensive to scale.
LLM-as-a-judge uses a model to score outputs against a rubric or to compare two answers. It handles open-ended output that code can't check, but its scores vary between runs.
Anthropic's advice is to use deterministic graders where possible, LLM graders where necessary, and human graders selectively for extra validation. OpenAI warns against relying only on generic academic metrics such as perplexity or BLEU. Alongside quality, Anthropic suggests tracking latency, token usage, cost per task and error rates on a fixed set of tasks.
How far can you trust an LLM judge? In the 2023 paper Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena, GPT-4 as a judge reached over 80% agreement with human preferences, the same level of agreement found between humans. The same paper found position bias, where a judge favors one answer because of where it appears, and verbosity bias, where it prefers longer answers. Calibrate any judge against human-labeled examples before you rely on it, and recheck it whenever you change the judge model or its prompt. Our LLM-as-a-judge guide covers how to build one.
Keep evals running after a model change
Models change under you. OpenAI's deprecations page lists GPT-4o and GPT-4.1 models shutting down on January 14, 2027, and says fine-tuned versions follow the same schedule as their base models. OpenAI commits to at least six months' notice for generally available models and tells developers to compare outputs, latency and cost before switching production traffic to a replacement.
Anthropic writes that when more powerful models come out, teams without evals face weeks of testing, while teams with evals can upgrade in days. Work through a model change in this order.
First, record a baseline. Run your current model on the full eval set and save the scores with the prompt version and settings you used.
Next, run the candidate on the same set at the settings you would use in production. Run each case more than once, because outputs vary between runs.
Then compare like for like: the regression pass rate, which cases changed from pass to fail, latency and cost per task. If an LLM judge is part of the suite, confirm it still agrees with your human labels.
After the switch, keep the production checks running and add new failures to the offline set. OpenAI calls this continuous evaluation: run evals on every change and grow the eval set over time.
Eval tools can change too. OpenAI shut down its own Evals platform on November 30, 2026. Keep your datasets, rubrics and past scores somewhere your team controls. If you used OpenAI Evals, our migration guide covers how to rebuild them.
Once another option passes, the optimization ladder and our guide on replacing a frontier model with a specialist model cover what to change first.
Where Orchestra fits
Orchestra builds evals from your product's real work. Your team's definition of good becomes the evals, and other models and prompts are tested against that baseline before anything changes. Orchestra is model agnostic, so candidates from different providers run on the same set. When the numbers justify it, Orchestra can train a specialist model on your own examples.
What does LLM evals mean?
Evals is short for evaluations. OpenAI's evaluation guide describes them as structured tests for measuring a model's performance. Anthropic puts it more simply: give an AI an input, then apply grading logic to its output to measure success. In practice, it usually means the tests a team writes for its own application, not public benchmarks.
What is an LLM evaluation framework?
It's the tooling that runs your eval set through your application and scores the results. LangSmith's documentation describes the usual flow: create a dataset of examples, define evaluators such as code rules, human review or LLM-as-a-judge, run an experiment, then compare results across versions. Whichever framework you choose, check that it runs the graders you need and that your datasets and scores stay somewhere your team controls.
How many test cases do I need to start?
Fewer than most teams expect. Anthropic writes that 20 to 50 simple tasks drawn from real failures is a great start, and that more mature systems may need larger, harder eval sets to detect smaller effects. Start small and add a case each time production shows you a new failure.
Is LLM-as-a-judge reliable?
It can be, once it's checked. In the 2023 paper Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena, GPT-4 as a judge reached over 80% agreement with human preferences, the same level of agreement found between humans. The same paper found position bias and verbosity bias in LLM judges. Calibrate a judge against human-labeled examples before relying on it.
Follow the evidence.
- Anthropic: Demystifying evals for AI agents (January 9, 2026)
- OpenAI: Evaluation best practices
- LangSmith: Evaluation (offline and online)
- Zheng et al.: Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena (2023)
- OpenAI: Deprecations
- LLM-as-a-judge guide
- OpenAI Evals shut down. Here's how to rebuild your evals
- How production traces become evals
- Domain experts, not ML teams, should define the reward signal
- The optimization ladder: prompts, SFT, RL and routing
- When to replace a frontier model with a specialist model
- Orchestra platform