
How to Evaluate Prompts and Agents (2026): LLM Evals in Practice, with Real Results
Most LLM features ship on vibes. Someone tries a dozen prompts, the answers look good, and the feature goes live. Then a model update, a prompt tweak, or a new kind of user question quietly breaks it, and nobody notices until a customer complains.
Evals are the fix. An eval is a repeatable test for a system whose output is not fully predictable. You collect inputs with known good outcomes, run your system on them, grade the results automatically, and track the score over time. It is ordinary software testing, adapted for outputs that are text instead of exact values.
This guide shows how to build evals that you can trust. It covers datasets, the three kinds of grader, model-as-judge pitfalls, agent evaluation, the statistics that small teams usually skip, and how to run evals in CI. It is practical rather than academic, and it is built around a real eval run, mistakes included.
I evaluated the RAG pipeline from my RAG guide with 28 questions, two prompt versions, three graders, and repeated runs. It used a local Gemma 4 model through Ollama, so it cost nothing to run. The results were humbling in a useful way. My “improved” prompt was not better, my citation grader had a bug, and my model judge failed three correct answers. Every number in this article comes from runs on November 30, 2026.
This article belongs to my AI series. It pairs with my guides to agent frameworks, LLM cost optimization, and prompt injection, which needs its own adversarial evals.
Table of Contents
- The Short Answer
- What an Eval Is
- Building the Dataset
- Three Kinds of Grader
- Model-as-Judge Without Fooling Yourself
- A Real Eval Run
- What the Run Taught Me
- The Code
- Evaluating Agents
- Statistics for Small Teams
- Evals in CI
- Online Evals and Monitoring
- Tools
- Common Mistakes
- Frequently Asked Questions
- Conclusion
- References
1. The Short Answer
| Step | Do this |
|---|---|
| Start small | Write 20 to 50 cases from real usage, including edge cases and questions with no answer |
| Grade with code first | Use exact checks, string matches, schema validation, and tool-call assertions where possible |
| Add a judge carefully | Use a model judge only for what code cannot check, give it a reference, and validate it against your own labels |
| Read the failures | Inspect every failing case by hand, because the grader is often what is wrong |
| Respect the noise | Report confidence intervals, and repeat runs when temperature is above zero |
| Automate | Run the suite on every prompt, model, or retrieval change, and block regressions |
The single most important habit is the fourth row: read the failures. In my run, reading the failing cases revealed two grader bugs and one judge weakness that the summary numbers hid.
2. What an Eval Is
An eval has four parts.
- A dataset: Inputs, plus what a good output looks like for each. That can be an exact answer, a required fact, a rubric, or a forbidden behavior.
- A task: The system under test. It can be a single prompt, a RAG pipeline, or a whole agent.
- One or more graders: Functions that turn each output into a score, such as pass or fail, or a number.
- A report: Aggregate scores, the individual failures, and a comparison with the previous run.
dataset --> task (prompt, RAG, or agent) --> graders (code, model, human) --> report
^ |
+------------- new cases from failures and production bugs ----------------+
Offline and online evals
- Offline evals run on a fixed dataset before you ship. They answer the question “did this change make things better or worse?”
- Online evals score real production traffic, usually a sample. They answer the question “is the live system still working?”
You need both, but start offline. An offline eval set is the foundation for everything else, including regression tests, prompt experiments, and model upgrades.
Evals are not benchmarks
Public benchmarks measure models on general tasks. Your evals measure your system on your tasks. A model that leads a leaderboard can still fail your specific use case, and a cheaper model can be good enough for it. Only your own evals tell you which.
3. Building the Dataset
Where cases come from
- Real usage: Logs, support tickets, and questions from beta users are the best source, because they reflect how people actually phrase things.
- Known failures: Every bug report becomes a test case, so the same failure cannot come back silently.
- Edge cases: Long inputs, empty inputs, other languages, ambiguous questions, and typos.
- Negative cases: Questions the system should refuse or answer with “I don’t know,” which catch hallucination.
- Adversarial cases: Prompt injection attempts and requests for things the system must not do.
How many cases
Start with 20 to 50, and grow from there. A small set that you have checked by hand beats a large set full of wrong labels. Section 10 explains what a small set can and cannot tell you.
My run used 28 cases: 24 answerable questions and 4 that the system should refuse. Include refusal cases from the start, even if they feel few. Without them, a system that confidently answers everything would score perfectly.
Write cases the way users talk
In my RAG eval, I deliberately phrased questions differently from the source text. For example, I asked “Do I need to pay for LM Studio if I use it at my job?” when the article talks about commercial licensing. Questions that copy the source wording make retrieval look better than it is.
Write the expected outcome precisely
For factual questions, list every acceptable phrasing of the answer. One of my cases expected “7-day” and the source said “Seven days.” That mismatch made a correct result look like a failure, until I read the output. My final dataset lists alternatives for each answer, as section 8 shows.
Keep a held-out set
If you tune prompts against the same cases you report on, you will overfit to them. This is the most common silent failure of small eval sets, because the score keeps rising while real quality does not.
Keep a portion of the cases completely untouched, even when the set is small. With 28 cases, five to eight held-out cases is a reasonable start. Do not look at their outputs while you iterate. Run them only before a release decision, and if they score much worse than the working set, you have been tuning to the test.
4. Three Kinds of Grader
Code-based graders
These are deterministic checks written in ordinary code.
- Exact or normalized match: For classification labels, numbers, or IDs.
- Contains or regex: For required facts in free text.
- Schema validation: For JSON outputs, using JSON Schema or a typed parser.
- Behavior checks: For agents, check whether a tool was called, with which arguments, and whether an action was approved.
- Execution checks: For code. Does it compile, and do its tests pass?
Code graders are fast, free, and reproducible. They are also brittle with free text, as my “7-day” case showed. Use them wherever the expected outcome can be stated precisely.
Model-based graders
A language model reads the output and judges it against instructions, a rubric, or a reference answer. This is often called LLM-as-judge. It handles paraphrase and nuance that code cannot. It also has biases and costs money per case, as the next section explains.
Human graders
People are the ground truth, and they are slow and expensive. Use them to label the dataset, to review a sample of judge decisions, and to grade subjective qualities such as tone. Never skip human review entirely, because both other graders need someone to check them.
5. Model-as-Judge Without Fooling Yourself
A model judge is a second model making decisions about the first. Treat it like any other component: test it before you trust it.
Known biases
Research on LLM judges, such as the MT-Bench paper by Zheng and colleagues, documented several biases.
- Position bias: In pairwise comparisons, judges favor the answer shown in a particular position.
- Verbosity bias: Judges tend to prefer longer answers, even when they are not better.
- Self-preference: A model may rate outputs that resemble its own style more highly.
Rules that make judges reliable
- Give a reference answer whenever one exists. Judging “does this match the reference?” is much easier than judging truth from scratch.
- Ask a narrow question. “Does the answer state the fact in the reference?” works better than “rate the answer from 1 to 10.”
- Prefer pass or fail over numeric scales. Scales drift, and nobody agrees on what a 7 means.
- Ask for a short reason with the verdict. It helps you debug, and it tends to make verdicts more consistent.
- Use structured output, such as JSON, so parsing never fails silently.
- For pairwise comparisons, run both orders, and count a win only when both orders agree.
- Validate the judge itself. Label a sample yourself, and measure how often the judge agrees. Re-check it whenever you change the judge model or prompt.
Keep references clean
My judge failed a correct answer that said “OWASP collected 7,714 incidents.” The reference said “7,714 incidents (6,639 classifiable).” The extra detail in the reference likely made the small judge model think something was missing. References should state only what a passing answer must contain.
6. A Real Eval Run
The system under test
The task was the RAG pipeline from my RAG guide. It answers questions about 16 articles on this blog, using hybrid search and a local gemma4:e4b model at temperature 0. The prompt tells the model to answer only from the numbered sources, cite them, and reply with an exact refusal phrase when the sources do not contain the answer.
The dataset
- 24 answerable questions, each with a short reference answer and a list of acceptable phrasings.
- 4 unanswerable questions, such as “Which Kubernetes operator does the author recommend for running Postgres?” None of the articles cover them, so the correct behavior is to refuse.
The graders
- String grader: Every required fact must appear in the answer, using any accepted phrasing. For unanswerable questions, the answer must equal the refusal phrase.
- Citation grader: At least one cited source must actually contain the answer.
- Model judge: The same Gemma model compares the answer with the reference and returns pass or fail with a reason.
The two prompts
- v1: A short instruction to answer from the sources, cite them, and refuse when needed.
- v2: My attempt at an improvement. It adds numbered rules: lead with the direct answer, use the exact figure from the sources, prefer the source that answers directly, and cite at the end of the sentence.
Results
| Measure | v1 prompt | v2 prompt |
|---|---|---|
| String grader, answerable | 23 of 24 | 23 of 24 |
| String grader, refusals | 4 of 4 | 4 of 4 |
| Citation grader, as first written | 20 of 24 | 19 of 24 |
| Citation grader, after fixing its bug | 23 of 24 | 23 of 24 |
| Model judge, answerable | 22 of 24 | 21 of 24 |
| Model judge, refusals | 4 of 4 | 4 of 4 |
| My own reading of every answer | 23 of 24 | 23 of 24 |
| Average time per answer | 1.2 seconds | 0.9 seconds |
The rows count different things. Rows marked “answerable” cover the 24 questions with an answer, and rows marked “refusals” cover the other 4. The citation grader only applies to answerable questions, so its total is always out of 24.
I also ran the v2 prompt three more times at temperature 0.8, using the string grader. Those scores cover all 28 cases: 26, 27, and 26.
Key takeaways from this run: The “improved” prompt was not better. The citation grader undercounted correct answers because of a parsing bug. The model judge failed three correct answers. One real failure came from the generation step, and no prompt change fixed it. Section 7 explains each one.
7. What the Run Taught Me
Lesson 1: my improvement was not an improvement
The v2 prompt looked better on paper. It scored the same on correctness and slightly worse with the judge. Its only real gain was shorter answers, which made it about 25% faster. Without the eval, I would have shipped v2 believing it fixed something. It did not fix the one real failure.
Lesson 2: the citation grader had a bug
The first citation scores were 20 and 19 out of 24. Reading the failures, I found answers like “The W3C published WebAuthn Level 3 as a Recommendation on August 25, 2026 [1, 2].” My grader’s pattern only matched [1], not [1, 2]. After I fixed the parser and re-graded the saved answers, both prompts scored 23 out of 24. Five of the “failures” were mine, not the model’s.
Lesson 3: the judge was wrong three times
The model judge failed three answers that were correct. One was “RFC 10017 … was published in August 2026,” for a question whose reference was “RFC 10017.” Another was the 7,714 incidents answer discussed in section 5. Across 56 judgments, the judge agreed with my own labels 53 times, or about 95%. It never passed a wrong answer, so in this run its errors were all on the strict side.
A judge with 95% agreement is useful for spotting trends. It is not good enough to trust blindly on individual cases, and it would be a poor gate on its own. Here, the cheap string grader was more accurate than the judge.
A practical bar for using a judge in a release gate has two parts. First, it should agree with your own labels on at least 90 to 95 percent of a sample. Second, look at the direction of its mistakes. A judge that fails good answers wastes your time, but a judge that passes bad answers lets regressions ship. This judge’s errors were all on the strict side, which is the safer direction.
Lesson 4: one case failed for a reason no prompt fixed
Question 22 asked how long to wait before adopting a new package version. Retrieval put the right chunk first, which says “Seven days is a practical default.” Both prompts still answered from a less relevant source. The RAG article showed that retrieval works for this question, so the eval points clearly at the generation step. The next experiment is a different model or fewer sources in the prompt, not more prompt rules.
Lesson 5: sampling adds noise
At temperature 0.8, question 9 flipped between runs. It asks what the Copilot data leak was called. Twice, the answer gave only the CVE number and left out the name “EchoLeak,” which the question asked for. A single run at a non-zero temperature can make a prompt look better or worse by luck. Repeat runs, or test at the temperature you will use in production.
Lesson 6: read the failures
Every one of these lessons came from reading individual outputs, not from the summary table. Make the failing cases easy to read in your eval report, and look at them every time.
8. The Code
The full harness is short. Here are the dataset format and the graders. The answer and chat functions call the RAG pipeline and the local model, as shown in my RAG guide.
The dataset format
// evalset.mjs: each group in `expect` must match at least one of its alternatives.
export const REFUSAL = "I don't know based on these sources.";
export const CASES = [
{
id: 2,
q: "For how many hours were the poisoned Trivy action tags available?",
ref: "About 12 hours",
expect: [["12 hours", "12-hour", "twelve hours"]],
},
{
id: 8,
q: "Which mix of capabilities makes an AI agent able to leak private data?",
ref: "The lethal trifecta: access to private data, exposure to untrusted content, and a way to communicate externally",
expect: [["private data"], ["untrusted"], ["external"]],
},
{
id: 22,
q: "How long should I wait before adopting a freshly published package version?",
ref: "About seven days is a practical default cooldown",
expect: [["seven days", "7 days", "7-day"]],
},
{
id: 25,
q: "Which Kubernetes operator does the author recommend for running Postgres?",
ref: "REFUSE",
expect: null,
},
// ...24 answerable and 4 unanswerable cases in total
];
The expect format handles answers with several required parts. Case 8 passes only if the answer mentions all three ingredients, in any wording from each list.
The grader code
const norm = (s) =>
s.toLowerCase().replace(/[‘’]/g, "'").replace(/\s+/g, " ").trim();
const isRefusal = (text) =>
norm(text).replace(/\.$/, "") === norm(REFUSAL).replace(/\.$/, "");
// Grader 1: deterministic string checks.
function gradeString(c, text) {
if (!c.expect) return isRefusal(text);
return c.expect.every((group) =>
group.some((alt) => norm(text).includes(norm(alt))),
);
}
// Grader 2: does a cited source actually contain the answer?
// Fixed parser: matches [1], [1, 2], and [1][2]. My first version matched only [1].
function gradeCitation(c, text, sourceTexts) {
if (!c.expect) return null; // not applicable to refusals
const cited = [...text.matchAll(/\[(\d+(?:\s*,\s*\d+)*)\]/g)]
.flatMap((m) => m[1].split(",").map((n) => Number(n) - 1))
.filter((i) => sourceTexts[i]);
if (!cited.length) return false;
const facts = c.expect.flat();
return cited.some((i) =>
facts.some((alt) => norm(sourceTexts[i]).includes(norm(alt))),
);
}
// Grader 3: model as judge, with a reference answer.
async function gradeJudge(c, text) {
const prompt =
"You are grading an answer from a question-answering system. Be strict and factual.\n" +
`Question: ${c.q}\n` +
(c.ref === "REFUSE"
? "Reference: the sources do not contain this answer, so the correct behavior is to decline.\n"
: `Reference answer: ${c.ref}\n`) +
`Candidate answer: ${text}\n\n` +
"Pass the candidate if it states the reference facts correctly (extra correct detail is fine), " +
"or, when the reference says to decline, if it declines without inventing an answer. Otherwise fail it.\n" +
'Reply with JSON only: {"verdict": "pass" or "fail", "reason": "<one short sentence>"}';
const { text: raw } = await chat(prompt, { format: "json" });
try {
return JSON.parse(raw);
} catch {
return { verdict: "error", reason: raw.slice(0, 80) };
}
}
The runner
async function runVersion(
name,
template,
{ temperature = 0, judge = true } = {},
) {
const rows = [];
for (const c of CASES) {
const r = await answer(c.q, { template, temperature });
rows.push({
id: c.id,
version: name,
answer: r.text,
seconds: r.seconds,
string: gradeString(c, r.text),
citation: gradeCitation(c, r.text, r.sourceTexts),
judge: judge ? (await gradeJudge(c, r.text)).verdict === "pass" : null,
});
}
return rows;
}
Save every row, including the full answer, to a file. Re-grading saved answers is how I fixed the citation bug without paying for new model calls. In a paid setup, that saves real money.
The judge requests JSON through Ollama’s format: "json" option. Hosted APIs have equivalent structured output features. Whatever you use, handle a parse failure as an explicit error, never as a pass.
9. Evaluating Agents
Agents make evaluation harder, because they take many steps, use tools, and change state. The final message alone tells you little. A good agent eval checks three things.
Outcome
Did the agent reach the goal? Check the end state directly, not the agent’s description of it. If the task was “file a bug for this error,” query the tracker and confirm the ticket exists with the right fields. Agents sometimes report success for work they did not do.
Trajectory
Did the agent take a reasonable path?
- Required steps: It must call specific tools, such as running tests before claiming a fix works.
- Forbidden steps: It must never call certain tools, or never call them without approval.
- Argument checks: Tool arguments must be valid, such as only allowlisted URLs or only the user’s own records.
- Efficiency: The number of steps, tokens, and seconds per task, because a correct agent that takes 40 steps may be too slow or too expensive.
A small checker makes these rules testable. It reads the agent’s recorded tool calls in order.
// steps: [{ tool, args, approved? }] in the order the agent made them.
export function checkTrajectory(steps, { mustPrecede = [], needsApproval = [], allowedArgs = {} }) {
const problems = [];
// Rule 1: some tools must run before others, such as search before write.
for (const [first, then] of mustPrecede) {
const i = steps.findIndex((s) => s.tool === then);
if (i >= 0 && !steps.slice(0, i).some((s) => s.tool === first)) problems.push(`${then} ran before any ${first}`);
}
// Rule 2: dangerous tools need an explicit human approval on that step.
for (const s of steps) {
if (needsApproval.includes(s.tool) && s.approved !== true) problems.push(`${s.tool} ran without approval`);
}
// Rule 3: argument allowlists, such as which domains a fetch tool may reach.
for (const s of steps) {
for (const [arg, test] of Object.entries(allowedArgs[s.tool] ?? {})) {
if (s.args?.[arg] !== undefined && !test(s.args[arg])) problems.push(`${s.tool}.${arg} not allowed: ${s.args[arg]}`);
}
}
return { pass: problems.length === 0, problems };
}
const rules = {
mustPrecede: [["search_tickets", "write_reply"]],
needsApproval: ["delete_ticket", "send_email"],
allowedArgs: { fetch_url: { url: (u) => new URL(u).hostname === "docs.example.com" } },
};
I tested it on seven recorded trajectories. It passed the good one and the approved delete, and it caught a reply written before any search, a delete without approval, and a fetch to an outside domain. It also reported two problems at once when a trajectory broke two rules.
Safety
Run adversarial cases alongside normal ones. Plant prompt injections in documents and tool results, and assert that side-effect tools did not run without approval. My prompt injection guide lists payload types worth including.
Practical tips for agent evals
- Run agents in a sandbox. Give the agent fake services or containers, so evals cannot damage real data, and reset them between cases.
- Use a scripted model for wiring tests. As my agent frameworks guide shows, a fake model that returns planned tool calls lets you test the loop for free.
- Measure consistency across runs. Agents vary from run to run. Run each case several times and report how often it succeeds every time, not just once. The tau-bench benchmark popularized this idea under the name pass^k.
- Set step and cost limits. An eval run that loops forever is itself a bug report.
10. Statistics for Small Teams
Small eval sets give noisy scores. That does not make them useless, but it changes how to read them.
One case is a big number
With 24 cases, each case is worth about 4 percentage points. A prompt that goes from 22 to 23 correct has “improved by 4 points,” and that can easily be noise.
Use confidence intervals
A Wilson score interval gives a plausible range for the true pass rate. I computed these 95% intervals.
| Score | Pass rate | Plausible range |
|---|---|---|
| 23 of 24 | 95.8% | 80% to 99% |
| 22 of 24 | 91.7% | 74% to 98% |
| 21 of 24 | 87.5% | 69% to 96% |
| 46 of 50 | 92.0% | 81% to 97% |
| 230 of 240 | 95.8% | 93% to 98% |
The ranges for 21, 22, and 23 out of 24 overlap heavily. My judge’s 22 and 21 for the two prompts say nothing about which prompt is better. Ten times more cases would narrow the range a lot. The last row shows the same 95.8% pass rate with 240 cases, and its range shrinks to 93% to 98%. That is why close decisions eventually need a few hundred cases.
Compare on the same cases
When you compare two prompts, look at the cases where they disagree. If v1 and v2 differ on only two cases, the comparison rests on those two. A paired comparison of this kind is more sensitive than comparing two separate averages.
Repeat runs when temperature is above zero
At temperature 0.8, my scores ranged from 26 to 27 out of 28 across three runs of the same prompt. Run each case several times, and report the mean and the worst run. For individual cases, also report how many passed in every run, in the spirit of pass^k from section 9. A case that passes two runs out of three will fail some real users. At temperature 0, outputs are usually much more stable, but not always identical, so do not assume perfect repeatability.
Practical rules
- Treat differences of one or two cases as noise on small sets.
- Grow the dataset where decisions are close and the stakes are high.
- Do not chase the last point. A change that fixes one case and breaks another is not progress.
11. Evals in CI
Evals pay off when they run automatically, like unit tests.
What to run and when
- On every change to prompts, models, retrieval, or tools: Run the full offline suite.
- On model upgrades: Run the full suite and compare case by case with the current model.
- Nightly or weekly: Run the expensive parts, such as judge-graded cases and repeated agent runs.
Gating rules
- Block regressions, not absolute scores. “No case that passed before may fail now” is often more useful than “score must be above 90%.”
- Allow known flaky cases to be marked, so they do not block every build, and fix them over time.
- Keep a cost budget. Record the tokens and dollars each run uses, and fail the job if a run costs far more than usual. My cost optimization guide covers batch APIs, which halve the cost of large eval runs.
Store results
Save every run’s outputs and grades with the commit hash, model version, and prompt version. When a score changes, you can then diff the actual answers, not just the totals.
12. Online Evals and Monitoring
Offline evals cover the cases you thought of. Production shows you the rest.
- Sample real traffic and run your graders on it, especially cheap code-based checks such as schema validity and refusal rates.
- Collect user feedback, such as thumbs up and down, and review the negative cases regularly.
- Watch proxy metrics that drift before quality visibly drops: answer length, refusal rate, tool error rate, and cost per request.
- Feed failures back into the dataset. Every confirmed production failure becomes a new offline test case.
Be careful with privacy. Production prompts often contain personal data. Apply the same retention and access rules to eval samples as to any other user data. In regulated environments, redact names, emails, account numbers, and other identifiers before samples enter your eval store, and keep the mapping, if you need one, in a separate, access-controlled system.
13. Tools
You can build everything in this article with plain code, as I did. Tools help with dataset management, dashboards, judge prompts, and tracing. The main options fall into two groups.
Frameworks and libraries
- promptfoo: An open source command-line tool for prompt evals and red teaming, configured in YAML. OpenAI announced an agreement to acquire Promptfoo on March 9, 2026, and said it would continue developing the open source project.
- Inspect: An MIT-licensed Python framework from the UK AI Security Institute, strong for agent and safety evaluations, with sandboxed execution.
- DeepEval: An open source Python framework with a pytest-style workflow and many built-in metrics.
- Ragas: An open source library focused on evaluating RAG pipelines.
Platforms
- Braintrust, LangSmith, and Langfuse add hosted datasets, experiment tracking, tracing, and human review interfaces. Langfuse is open source and can be self-hosted.
- Model vendors also offer evaluation features in their consoles and APIs.
Tool ownership and licensing change, as the Promptfoo announcement shows. Check each project’s current status before you build on it. Pick tools after you have a working dataset and graders, not before. A tool cannot tell you what good output looks like for your product.
14. Common Mistakes
- Shipping on vibes alone. A dozen manual tries is not an eval.
- Trusting the grader without checking it. My citation grader and my judge were both wrong on several cases.
- Writing expected answers with only one phrasing. “7-day” and “Seven days” are the same answer.
- Using a judge with vague instructions. Give it a reference and a narrow pass or fail question.
- Leaving out unanswerable questions. Without them, you never measure hallucination.
- Reading only the summary score. The lessons are in the individual failures.
- Overreacting to small differences. One case out of 24 is within the noise.
- Testing agents by their final message. Check the real end state and the tool calls.
- Tuning on the test set. Keep held-out cases for release checks.
- Never updating the dataset. Add every production failure as a new case.
15. Frequently Asked Questions
How many test cases do I need?
Start with 20 to 50 good ones. That is enough to catch large regressions and to learn where your system fails. Grow toward a few hundred for decisions between close options, as the intervals in section 10 show.
Should the judge be a stronger model than the system under test?
Often yes, because a stronger judge makes fewer mistakes. In my run, the judge was the same small model, and it was wrong on 3 of 56 judgments. Whatever you use, measure its agreement with your own labels before you rely on it.
Can I use temperature 0 to make evals deterministic?
It helps, but it does not guarantee identical outputs on every platform. Also, if production runs at a higher temperature, test at that temperature too, with repeated runs.
How do I evaluate open-ended writing, like summaries?
Use a rubric with specific, checkable criteria, such as “mentions the deadline” and “under 100 words,” and grade each criterion separately. Combine code checks for the measurable parts with a validated judge for the rest, and review a sample by hand.
How often should I re-run evals?
Re-run them on every change to prompts, models, retrieval, or tools, plus on a schedule to catch vendor-side model changes. Hosted models can change behavior even when your code does not.
Do evals replace human review?
No, they make it efficient. Automated graders handle volume, and humans check samples, label new cases, and validate the graders.
16. Conclusion
Evals turn “it seems fine” into evidence. Build a small dataset from real usage, grade with code wherever you can, add a model judge only where you must, and validate every grader against your own judgment.
My own run shows why the last part matters. The prompt I thought was better was not. My citation grader undercounted correct answers, and my judge failed three correct answers. The summary numbers hid all of that. Reading the failing cases revealed it in minutes.
Start this week with 20 questions and a script. Run it on every change, read the failures, and add a case for every bug you find. Tools and models will keep changing, so treat the tool details here as accurate as of late November 2026.
17. References
Methods and research
- Zheng et al.: Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena
- Yao et al.: tau-bench, a benchmark for tool-agent-user interaction
- Wilson score interval (Wikipedia)
- Anthropic: Define success criteria and build evaluations
- OpenAI: Evaluation best practices
Tools
- promptfoo
- OpenAI: OpenAI to acquire Promptfoo
- Inspect (UK AI Security Institute)
- DeepEval
- Ragas
- Langfuse
- Ollama: structured outputs