Skip to content
Valery

Module 2 · Lesson 6 of 6

Evals: testing prompts before you trust them

Test sets, rubrics and pass/fail checks, human and model grading, and re-testing when prompts or models change.

8 min

You wouldn't hand a new agent the brokerage's listings without reading a few of their drafts first. A prompt deserves the same treatment, and more, because it will write hundreds of drafts without getting tired or asking questions. An eval (short for evaluation) is how you read those drafts systematically: a fixed set of test cases, a clear way to grade them, and a score you can compare when anything changes.

Evals sound technical. At a brokerage, a good one is a spreadsheet with twenty rows and a rubric everyone agrees on. This lesson shows how to build one, how to grade it, and when to run it again.

Key term
Eval

A repeatable test of a prompt or model: a set of inputs, the behaviour you expect for each, and a grading method that produces a score you can compare over time.

Why bother

Two reasons. First, models vary: the same prompt can produce a good draft on Monday and a poor one on Tuesday, and one good result proves little. OpenAI's evaluation guide makes the same point: generative AI is variable, so traditional one-off testing isn't enough. Second, things change underneath you. Vendors retire models (Module 1, Lesson 5), you edit prompts, RECO updates a bulletin, and a workflow that passed last quarter may quietly fail this quarter. An eval tells you before a client does.

Building a test set

A test set is a list of realistic, fictional inputs, each with a note of what a good output must do. Ten cases is a useful start; twenty to thirty gives you more confidence. Mix four kinds:

Case typeWhat it testsListing-description example
TypicalThe everyday jobA complete fact sheet for a three-bedroom semi
EdgeUnusual but legitimate inputsNo square footage given; a rural property with a well and septic; a French request
AdversarialRequests the prompt should refuse or reshape"Say it's the best street in town"; "perfect for a young family"; no seller consent
Known answerA fixed fact the output must get exactly rightThe exact brokerage line; a special assessment marked "Disclose: yes"

For each case, write the expected behaviour before you run anything: "Leaves out square footage and doesn't estimate it", or "Refuses and asks for consent confirmation." Writing it first stops you from grading generously after you've seen the output.

Keep every case fictional, and keep the set in a file you own: a spreadsheet, or this module's template.

Grading: checks and rubrics

Use two kinds of grading together.

Pass/fail checks are yes-or-no questions with no room for taste. Many can be automated with a formula or a simple script:

  • Ends with the exact brokerage line?
  • Word count between 130 and 170?
  • None of the banned words?
  • No facts that aren't in the fact sheet?
  • Refused when consent was missing?

Rubric scores cover judgement, rated 1 to 5 with a short description of each level so different graders agree. For example, for voice: 5 means "reads like our best agent wrote it; no edits", 3 means "accurate but generic; needs a rewrite of one or two sentences", 1 means "off-brand or awkward; unusable". Anthropic's guidance on success criteria recommends exactly this mix: specific, measurable criteria, with qualitative scales applied consistently.

A case passes only if every applicable check passes. Scores tell you how good the passing outputs are.

Who grades: people, code or a model

GraderGood forWatch out for
Code (formulas, scripts)Exact lines, word counts, banned words, required fieldsCan't judge tone or truthfulness
A personAccuracy, compliance, voice, judgement callsSlow; graders drift unless the rubric is clear
A model (model-graded)Scoring many outputs against a written rubricCan be wrong or lenient; check it against human grades

Model grading, sometimes called "LLM as judge", means giving a second model the rubric, the input and the output, and asking for a score with reasons. It scales well once you have hundreds of cases. Before you trust it, have a person grade the same ten outputs and compare. If the model's grades disagree often, tighten the rubric or keep grading by hand. For compliance-sensitive checks, such as consent and protected-ground wording, keep a person in the loop regardless.

Running the eval

One eval run
  1. 1. DataTest cases with expected behaviour
  2. 2. AIRun the prompt on every case
  3. 3. CheckAutomatic pass/fail checks
  4. 4. HumanScore the rubric and review failures
  5. 5. StoreSave results with the date, prompt version and model
  6. 6. CheckCompare with the previous run

Record three things with every run: the date, the prompt version, and the exact model name. Without them, a score means nothing next month.

You can do all of this in a spreadsheet. If you're comfortable with code, the open-source promptfoo tool runs test cases against prompts and models from a configuration file and reports pass rates, and a coding agent can set it up for you. One caution about vendor-hosted tools: as of October 2026, OpenAI has announced it is retiring its Evals platform (read-only from October 31, 2026 and shut down on November 30, 2026). Keep your test cases and results in files you control, so they move with you when tools change.

Reading results

  • Look at failures before scores. One failure on a consent case matters more than a half-point drop in voice.
  • Group failures by type. "Three of four failures added distances not in the fact sheet" points to one fix.
  • Change one thing, then re-run everything. A fix for one case can break another. Re-running the whole set catches that; that is what regression testing means.
  • Don't overfit. If you tune the prompt until it aces these exact ten cases, it may be memorizing them. Keep a few extra cases aside and only run them at the end.

When to run it again

Re-run the full eval whenever:

  1. you change the prompt;
  2. you switch models, or a vendor retires or updates the one you use;
  3. a rule changes, such as a RECO bulletin or your brokerage's policy;
  4. someone finds a new failure in real use (add it as a test case first, then fix it).

In practice

Maple & Main Realty tests its listing-description prompt on ten fictional fact sheets before launch. These results are illustrative:

RunPromptCases passing all checksAverage voice scoreMain failures
1Version 16 of 103.4Added "steps to transit" for a 900 m walk; wrote "ideal for a growing family"; wrote copy with no consent on file
2Version 29 of 103.9Used one banned word in the French case

Between runs, the operations lead made three changes: a rule to copy distances exactly as given, a rule to describe the home and never the buyer (with one example), and a "stop and ask" instruction for missing consent. Version 2 still failed the French case, so they added a French example and a French banned-word list, re-ran all ten, and got 10 of 10. The broker of record signed off on version 3, and the prompt's change log now says: re-run on every prompt change and whenever the model changes.

Common mistakes

  • Testing on one input and calling the prompt done.
  • Writing the expected behaviour after seeing the output.
  • Grading by feel instead of with a written rubric.
  • Trusting a model grader without comparing it with human grades.
  • Not recording the prompt version and model name with each run.

Key takeaways

  • An eval is a fixed test set, expected behaviour for each case, and a consistent grading method.
  • Mix typical, edge, adversarial and known-answer cases; keep them fictional and in files you own.
  • Combine pass/fail checks with a 1-to-5 rubric; a case passes only if every check passes.
  • Code, people and models can grade; calibrate model graders against people, and keep people on compliance checks.
  • Re-run the whole set whenever the prompt, model or rules change.

Finished reading? Move on when you're ready.