JT / SAGE IDEAS Work with me

LLM Evaluation & Quality

Testing vs Evaluating an LLM: What Is the Difference

One checks a right answer, the other scores a fuzzy one. Confusing them is why teams measure the wrong thing.

Jason Teixeira3 min read

Testing and evaluating an LLM sound like the same job, and teams treat them that way until something breaks in production that every test passed. The split is simple. Testing checks the parts of your system that have one right answer. Evaluation scores the part that has a fuzzy answer, the model's actual output. Mix them up and you either write brittle tests that fail on a synonym, or you never measure the thing that actually matters.

One has a right answer, the other has a better answer #

A test asserts. Given this input, the code returns exactly this, and if it does not, the test is red. That is the world your non-model code lives in. The retrieval query returns the right five documents. The JSON parses. The function that strips markdown strips markdown. Pass or fail, no opinion.

An evaluation scores. Given this prompt, how good is the answer, on a scale, against a rubric. There is no single correct string. A support reply can be phrased a hundred ways and all be fine, and one small factual error can make a fluent answer worse than a clumsy correct one. You are not asking whether it matched. You are asking whether it is good enough, and how often.

The concrete line, in one system #

Say you build a bot that answers billing questions from your docs. The pipeline has both kinds of surface, and you should treat them differently.

Test the deterministic spine. The router sends a billing question to the billing tool. The retriever pulls the refund-policy doc for a refund question. The output validates as JSON with a ticket_id field. The rate limiter blocks the eleventh call. These are assertions. They run on every commit, they should be exactly green, and a failure blocks the merge.

Evaluate the generated answer. Is it faithful to the retrieved doc, does it address what was asked, does it invent a policy that does not exist. You cannot assertEqual that. You run it over a set of graded cases and track a score, and a small drop is a signal to look, not a red build. The bug most teams ship is writing an exact-match test against the model's prose. It fails the first time the model says "refunded" instead of "refund", and it teaches everyone to ignore the suite.

Why confusing them measures the wrong thing #

Test what you should evaluate and you get false failures. The assertion breaks on rewording, so people loosen it to a substring check, then to nothing, and the model's quality goes unmeasured while the suite stays green on garbage.

Evaluate what you should test and you get false confidence. A rubric score of 8.6 looks healthy while your router silently sends half of billing questions to the wrong tool, because the eval averaged over the failure instead of catching it. Deterministic bugs hide inside fuzzy averages.

The rule that keeps you honest: if the output has exactly one correct value, assert it. If correctness is a matter of degree, score it. Most real pipelines need both, wired to different gates.

The bottom line #

Draw the line by asking one question of each output. Is there exactly one correct value, or a range of better and worse. That answer tells you whether to assert or to score, and which gate it belongs behind. Get the split right and your test suite stays trustworthy while your evals stay honest, which is the only way to know your system works instead of just passing.

Want this on your product, not just in theory?

Get a free mini-eval on your live AI feature, or book a call to talk it through.

Build your plan, 2 min Or book a call

Was this useful? Book a call Get a free mini-eval Not sure what you need? Answer 3 questions

Receipts · the newsletter

Receipts: AI engineering, with the evidence attached.

One real finding with its proof, one runnable lab, and one thing I would do differently. Weekly, Tuesday morning, a five-minute read.

required

Free. One email a week. Confirm first, unsubscribe in one click. How it works

Not ready to talk yet?

Get the AI release-readiness checklist

Eighteen checks to pass before an LLM feature meets a customer. The checklist is free and open: no email wall. Leave one email and I also send the sample evaluation report that goes with it. One email is all I ask for.

required

Inside the checklist: 18 checks, 5 groups

  • Ground truthwithout this, every other check is opinion3 checks
  • Measurement"it seems better" is not a metric4 checks
  • Safety batterythe failure modes that end up in screenshots5 checks
  • The gatea red eval that blocks nothing is decoration3 checks
  • Blast-radius controlautonomy is earned with evidence, never assumed3 checks