All blogs

LLM Evaluation Guide: Metrics, Methods, and an Example

By Palak Dalal Bhatia·CEO & Co-founder, IrisAgent·Dec 02, 2026·12 min read
LLM evaluation guide hero

LLM evaluation is the practice of scoring a large language model's outputs against defined criteria, such as correctness, grounding, format, and policy, so you can measure quality before and after a prompt or model change. Good LLM evaluation picks metrics per workflow, grades them with the right method, and turns scores into ship or hold decisions.

Here is why the "per workflow" part matters. On IrisAgent's Support Model Arena, Claude Fable 5.1 beat Claude Fable 5 on hallucination resistance, 100% against 95%, at the same price. On ticket tagging, it scored 79.6% against 85.7%. Same vendor, same price, newer version: better for one job and worse for another.

This guide ties together our series on LLM evaluation. It covers the metrics to track for each kind of workflow, the three grading methods and how to calibrate a judge, the difference between offline, production, and regression evaluation, and a worked example that uses real Arena numbers to decide whether a model upgrade should ship.

Key Takeaways

  • Measure each workflow separately. Grounded answers, routing, agents, generated content, and voice each need their own metrics, plus cost and latency.

  • Match the grader to the rule. Use code checks where one right answer exists, LLM-as-a-judge for meaning, and human review to keep the judge honest.

  • Calibrate before you trust a judge. Compare its verdicts with expert labels and track how often it passes outputs a human would fail.

  • Run three loops. Offline evaluation gates changes, production evaluation catches drift, and regression evaluation stops old bugs from coming back.

  • Treat small gaps as noise. A difference of a point or two on a single run is not a reason to ship or to hold.

What Is LLM Evaluation?

LLM evaluation turns "the new prompt feels better" into a number you can defend. You run a fixed set of inputs through your system, grade each output the same way, and compare the score with your last version. If the score drops on any workflow, the change does not ship until someone explains why.

Every eval has three parts: inputs, a grader, and a score you track over time. Our plain-English guide to AI evals explains those parts with examples, so this guide starts where that one stops: which metrics to choose, how to trust the grader, and how to act on the result.

It also helps to separate LLM evaluation from model benchmarks. Public benchmarks score a model on shared exams and puzzles. Your evaluation scores your whole system (model, prompt, retrieval, and tools) on your own work. Benchmarks help you build a shortlist. Only your own LLM evaluation tells you whether a model clears your bar on your traffic.

Want to see this on your own calls? Get a free sample eval report by sending 10 to 20 example conversations or calls. We return graded results with explanations, plus the same prompts replayed on leading models, with price.

LLM Evaluation Metrics by Workflow

Most metric lists online mix every workflow into one long glossary. That makes it hard to choose. Start from the job the model does, then pick the two to four LLM evaluation metrics that decide whether it did that job.

Workflow

Metrics to track

Typical grader

Example pass rule

Grounded answers and RAG

Answer accuracy, faithfulness to retrieved context, context precision and recall, citation accuracy, hallucination resistance

Judge model with the retrieved context, plus code checks on citations

Answer is correct, every claim is supported by the cited article, and the bot declines when no article covers the question

Routing and tagging

Accuracy per label, confusion between label pairs, escalation recall

Code-based exact match against expert labels

Ticket gets the tag a senior agent chose, and "talk to a human" requests always escalate

Agents and tool use

Tool selection, argument accuracy, task completion, steps taken

Code checks on the trace, judge on the final reply

Right tool, right order ID, refund within policy, task done in a reasonable number of steps

Generated content

Correctness against the prompt, required content, format, tone

Judge model with a rubric, code checks for format

Summary covers the customer's issue and next step, stays under the length limit, and uses the brand voice

Voice and multilingual

Turn accuracy, language fidelity, response time per turn

Judge model per agent turn, with the prior conversation

Reply matches the language mix the user spoke and answers the turn correctly

Cost and latency (every workflow)

Cost per resolved task, typical and tail response time, tokens per call

Logged automatically

Candidate stays inside the cost and latency budget set for that workflow

RAG Evaluation Needs Two Layers

RAG evaluation fails most often because teams score only the final answer. A wrong answer can come from bad retrieval or from a model that ignored good retrieval, and the fixes are different. So score both layers. Retrieval metrics, such as context precision and context recall, tell you whether the right documents came back.

Generation metrics, such as faithfulness and response relevancy, tell you whether the answer used them honestly. The open-source Ragas metric library documents these metrics and is a useful reference even if you never install it.

Add a must-decline set as well. These are questions your knowledge base cannot answer. A pass means the model declines or hands off. Without them, a model that guesses confidently scores the same as one that knows when to stop.

Metrics to Use Sparingly

Overlap scores such as BLEU and ROUGE compare word overlap with a reference answer. They suit translation research, but they punish a correct answer phrased differently and reward a wrong answer that reuses the right words. For customer-facing text, a rubric graded by a calibrated judge tells you far more.

LLM Evaluation Methods: Code, Humans, and Judges

There are three ways to grade an output, and a strong LLM evaluation framework uses all three.

Method

Use it for

Watch out for

Code-based checks

Labels, JSON format, required links, tool names and arguments, banned phrases

Cannot judge meaning, tone, or completeness

Human review

Writing the rubric, labeling a calibration set, edge cases, new workflows

Slow, costly, and reviewers disagree with each other

LLM-as-a-judge

Answers, summaries, replies, and conversations at full volume

Has its own biases and must be calibrated before you trust it

The order matters. Run code checks first, because they are free and exact. Use a judge model for everything that needs reading comprehension. Then spend human time where it multiplies: labeling a sample that keeps the judge honest. Our guide to AI evals walks through each grader with examples.

How to Calibrate an LLM Judge

A judge model is only as trustworthy as its agreement with your experts. Researchers who studied GPT-4 as a judge found it reached over 80% agreement with human preferences, about the level humans reach with each other. The same study of LLM-as-a-judge also documented position, verbosity, and self-enhancement biases. Both findings point the same way: a judge can work well, but you have to check it on your own data.

Calibration takes an afternoon, not a quarter:

  • Label a calibration set by hand. Have a domain expert grade 50 to 100 outputs pass or fail, with a one-line reason each. Include known failures, not only easy passes.

  • Run the judge on the same items. Use the exact rubric and prompt you will use in production.

  • Measure agreement by class, not overall. Overall agreement hides the dangerous case. Track the false pass rate: how often the judge passes an output your expert failed.

  • Fix the rubric, not the score. Read every disagreement. Most come from a vague rule, such as "helpful," that needs a concrete test, such as "states the refund window from the policy article."

  • Use binary verdicts with reasons. OpenAI's evaluation best practices recommend pass or fail and pairwise comparisons over open-ended scales, and advise calibrating automated scoring against human feedback.

  • Use a different model as the judge. Anthropic's guide to building evals recommends a judge model that differs from the model that wrote the output.

  • Re-check on a schedule. Re-run calibration whenever you change the judge model, the rubric, or the workflow, and spot-check a small sample every month.

Offline, Production, and Regression Evaluation

LLM evaluation runs in three loops. Each answers a different question, and skipping one leaves a blind spot.

Loop

Inputs

Question it answers

When it runs

Offline evaluation

A fixed, versioned eval set

Is version B better than version A?

Before any prompt, model, or retrieval change ships

Production evaluation

Live calls, graded as they happen

Is quality holding up right now?

Continuously, with alerts when a score drops

Regression evaluation

Every past failure, saved as a test case, plus a baseline

Did this change break something that used to work?

On every change, as a gate in your release process

Offline evaluation is fair because every candidate sees identical inputs. Production evaluation has no labels, so it leans on judges and code checks, but it catches what no fixed set can: a new question type, a broken integration, a provider that changed a model behind the same name.

Regression evaluation is the loop teams forget, and it is the closest thing to classic LLM testing. Each production failure becomes a test case with a pass rule. Each change runs against the full set and is compared with a recorded baseline. A drop larger than your noise threshold blocks the release. Over time, this suite becomes your record of every lesson the product has taught you.

The Golden Dataset Behind Every Score

Offline and regression evaluation both depend on one asset: the golden dataset, the reference set of representative inputs and pass rules you score every version against. The best sets come from redacted production logs, sampled across workflows and languages, with near-duplicates removed and past failures kept on purpose.

Size matters too: at 90% accuracy, 100 items gives a margin of error of about 6 points, while 1,000 items brings it to about 2. Our guide to building a golden dataset from production logs covers sampling, sizing, labeling, and upkeep step by step.

Worked Example: Should You Ship a Model Upgrade?

Here is LLM evaluation driving a real decision, using numbers from the Support Model Arena, IrisAgent's public leaderboard of LLMs scored on customer support work. Every model runs inside the same production stack, with the same retrieval, tools, and prompts. Only the model changes.

The scenario is hypothetical: your support assistant runs on Claude Fable 5, and Claude Fable 5.1 has just been released at the same price. Should you switch? Here are the Arena scores from the snapshot dated November 14, 2026.

Metric

Claude Fable 5 (today)

Claude Fable 5.1 (candidate)

Gap

Answer accuracy

97.6%

96.5%

-1.1

Hallucination resistance

95%

100%

+5.0

Cited sources

84.7%

87.1%

+2.4

Intent routing

95%

Not yet scored

Unknown

Ticket tagging

85.7%

79.6%

-6.1

Typical response time vs board median

1.19x

1.31x

Slower

Output price per 1M tokens

$50

$50

Same

Reading the Results

Start with the Arena's own method limits. Grading is exact-match on single runs, and the Arena states that a gap of a point or two is within run-to-run noise. Apply that rule to every row before you react to it.

  • Answer accuracy, -1.1: inside the noise band. Treat it as a tie.

  • Hallucination resistance, +5.0: a real signal, and the most valuable row for a customer-facing bot. Note that this suite moves in 5-point steps, so a handful of tickets decides it. Confirm it with a re-run before you celebrate.

  • Cited sources, +2.4: just past the noise band. Promising, not conclusive.

  • Intent routing: no score yet. Missing data is not a pass.

  • Ticket tagging, -6.1: well past noise. If you use the same model to tag tickets, this upgrade makes triage worse.

  • Speed and cost: same price, slightly slower on typical responses.

The Decision

A single blended score would have hidden all of this. The per-workflow read gives a split decision:

  • Ship for grounded answers, after one confirming re-run of the hallucination and citation suites on your own golden dataset.

  • Hold for ticket tagging. Keep Fable 5 there, or evaluate a model that leads on tagging.

  • Hold for intent routing until the candidate has a routing score on your workflows.

Now widen the lens, because LLM evaluation also changes cost decisions. On the same board, Claude Opus 5.5 scored 94.1 overall against Claude Fable 5's 93.3. That gap is within noise, so call it a tie on quality. But Opus 5.5 costs $20 per million output tokens against $50, and it scored 89.8% on tagging against 85.7%. The cheapest good answer to "should we upgrade?" was a different model entirely.

What This Example Cannot Tell You

The Arena measures support work in IrisAgent's stack, not yours. Your prompts, knowledge base, languages, and tag catalog differ, so treat these numbers as a shortlist, not a verdict. Scores also move when the suites re-run, and the Arena's own guidance is to read the shape of the board more than any single percentage. The decision above is only final once the candidate runs on your golden dataset, graded by your calibrated judge.

How to Evaluate LLM Output Quality: A Step-by-Step Process

Use this process for any workflow, from a single prompt to a multi-agent system.

  1. Name the decision. Write the question the evaluation must answer, such as "Can we move tagging to a cheaper model?" The decision tells you what to measure and what threshold matters.

  2. List workflows and pick metrics for each. Use the table above. Two to four metrics per workflow is enough, plus cost and latency.

  3. Build or refresh the golden dataset. Sample redacted production logs across workflows and languages, keep past failures, and add must-decline items.

  4. Write pass rules in plain English. Two to five rules per workflow, each specific enough that two experts would grade the same output the same way.

  5. Assign a grader to every rule. Code checks for exact answers, a judge model for meaning, and human labels for the calibration set.

  6. Calibrate the judge. Measure agreement with expert labels and the false pass rate, and fix the rubric until both are acceptable.

  7. Record a baseline and a noise threshold. Score your current production setup, save it with the dataset version, and decide how large a gap must be before it counts.

  8. Run candidates and read results per workflow. Compare each metric against the baseline, ignore gaps inside the noise band, and make a ship or hold call per workflow.

  9. Turn on production evaluation. Grade live calls against the same rules and alert when a score drops.

  10. Feed failures back. Every production failure becomes a regression test, so the same bug cannot ship twice.

Common LLM Evaluation Mistakes

Most evaluation programs stall for a handful of reasons:

  • One blended score. An overall number hid a 6-point tagging regression in the example above. Report every workflow separately.

  • Reacting to noise. A one-point move on a single run is not a trend. Set the noise threshold before you look at the results.

  • Trusting an uncalibrated judge. If no expert has checked the judge, its score is a guess with a decimal point.

  • Scoring only the final answer in RAG. Without retrieval metrics, you cannot tell a search problem from a generation problem.

  • No must-decline items. A model that never says "I don't know" will look perfect on answerable questions.

  • Treating missing data as a pass. A metric that was never measured, like intent routing in the example, blocks a ship decision for that workflow.

  • A set written once. Eval sets drift away from production within months. Refresh from live traffic and keep adding failures.

  • Choosing models from public leaderboards alone. They are useful for a shortlist, not for a decision about your policies and your customers.

Choosing an LLM Evaluation Framework or Tool

The right tooling depends on who will own the work. Open-source frameworks such as DeepEval, Ragas, and promptfoo suit engineers who want code-first tests in CI. Platforms such as Braintrust, LangSmith, Langfuse, and Arize Phoenix trace calls and give your team tools to curate datasets and write scorers. Our comparison of the best LLM evaluation tools covers eight options with pricing and fit, and our Langfuse vs LangSmith vs Braintrust breakdown goes deeper on the three most common platforms.

Disclosure: IrisAgent makes IrisEvals, so weigh this paragraph accordingly. IrisEvals is for teams that want the evaluation work done for them. It drafts evaluation criteria from your prompts, policies, and conversations, grades 100% of production LLM calls, builds and refreshes the golden eval set from live traffic, and opens verified pull requests that are replayed on the failing conversations and the golden set. It also replays any candidate model on your traffic with cost and latency, and recommends whether to ship or hold. If your team wants to own every test in code, a framework is often the better fit.

Next Steps

Pick one workflow and one decision, such as a model upgrade you are weighing now, and run it through the ten-step process above. To compare models on support work first, browse the Support Model Arena. If nobody on your team has time to own criteria, datasets, and judges, send 10 to 20 conversations for a free sample eval report.

Frequently Asked Questions

What is LLM evaluation?

LLM evaluation is the practice of scoring a large language model's outputs against defined criteria, such as correctness, grounding, format, and policy. You run a fixed set of inputs, grade every output the same way, and compare scores across prompts, models, and releases. It replaces spot checks and gut feel with numbers, so a team can decide whether a change makes the product better or worse before customers find out.

What are the most important LLM evaluation metrics?

It depends on the workflow. Grounded answers need answer accuracy, faithfulness, citation accuracy, and hallucination resistance. Routing and tagging need accuracy per label and a view of which labels get confused. Agents need tool selection, argument accuracy, and task completion. Generated content needs correctness, required content, format, and tone. Every workflow should also track cost per resolved task and response time, because a better score at triple the cost may not be worth shipping.

What is the difference between LLM evaluation and LLM testing?

The terms overlap. LLM testing usually means pass or fail checks that run before a release, much like unit tests, such as "output is valid JSON" or "the refund request escalates." LLM evaluation is broader. It includes those tests, plus scored metrics, judge-graded rubrics, model comparisons, and grading of live production traffic. Regression evaluation sits in the middle: a growing suite of past failures that every change must pass.

How do you evaluate RAG systems?

Evaluate retrieval and generation separately. For retrieval, measure whether the right documents came back, using context precision and context recall. For generation, measure whether the answer is faithful to those documents and relevant to the question. Then add a set of questions the knowledge base cannot answer, and check that the system declines or hands off. Scoring only the final answer hides whether a failure came from search or from the model.

Can you trust LLM-as-a-judge?

Yes, once it is calibrated. Research on GPT-4 as a judge found agreement with human preferences above 80%, similar to agreement between humans, but also found position and verbosity biases. Before trusting a judge, grade 50 to 100 outputs by hand, run the judge on the same items, and track how often it passes outputs your expert failed. Use binary verdicts with reasons, and use a different model from the one being graded.

How often should you run LLM evaluation?

Run offline and regression evaluation on every change to a prompt, model, retrieval setup, or tool. Run production evaluation continuously on live traffic, with alerts when a score drops. Re-run judge calibration whenever you change the judge model or rubric. Refresh the golden dataset at least monthly, and add every new production failure as a test case as soon as you find it.

How big should an LLM evaluation dataset be?

Size it to the smallest gap you need to detect. At 90% accuracy, 100 items gives a margin of error of about 6 points, and 1,000 items narrows it to about 2. A set of 100 to 300 items per workflow is a practical start for most teams. Spread items across workflows, languages, and edge cases, and include must-decline questions so the set tests judgment, not only recall.

Continue Reading
Contact UsContact Us

Loading the form. Prefer email? Reach us at info@irisagent.com or call +1 617 249 3312.