JournalEngineering5 min readUpdated

LLM evaluation: how to evaluate an AI product

Most AI features fail quietly, in ways no dashboard predicted. The fix is unglamorous: read real outputs, name the failures, and measure only those.

A bearded marble head of Herakles, printed in ultramarine

LLM evaluation is how you find out whether an AI feature actually works for the people using it, not just in the demo. The method that holds up in production is unglamorous: read real outputs, name the failures you see, and measure only those. Here is the loop we use on every AI product we build.

Ask a team how they know their AI feature works and the honest answer is often: it looked good when we tried it. That is a vibe check, and vibe checks do not survive contact with real users, who phrase things differently, bring messier data and find the edge cases on the first day.

The alternative is an evaluation practice, usually shortened to evals. Some of the most practical writing on the subject comes from people who have built these systems for many teams. Hamel Husain’s guide is a good example, and its central claim surprises people: the most important activity in evals is not building metrics. It is error analysis, which means looking at the data.

Why generic metrics mislead

It is tempting to start with an off-the-shelf score for helpfulness, relevance or similarity to a reference answer. These numbers are easy to compute and easy to put on a dashboard. Husain is blunt about them: “Generic evaluations waste time and create false confidence when you use them as quality measures.” They measure abstract qualities, while your users experience specific failures: a wrong date, an ignored instruction, a confident answer to a question that needed a follow-up.

Step one: read a hundred conversations

Error analysis is simple to describe and easy to skip. Collect a representative set of real interactions, a hundred or more. Have someone who understands the users read at least thirty of them closely and write a plain note about what went wrong in each. Then group those notes into a small set of failure types and count them.

The counting is what makes it useful. After an afternoon you no longer have a vague sense that quality is “mostly fine.” You have a ranked list: this failure happens in a fifth of conversations, that one in two percent. The ranking tells you what to fix first, and what is worth measuring at all.

One person decides what good means

Quality judgements need an owner. Husain recommends a single domain expert, someone who deeply understands the users, as the final word on what passes. A committee of annotators produces disagreement and slow decisions. One accountable person produces a consistent standard that can be written down and, later, taught to an automated grader.

Pass or fail, never one to five

Rating outputs on a five-point scale feels more precise than a yes or no. It is not. As the guide puts it, “the difference between adjacent points (like 3 vs 4) is subjective and inconsistent across annotators.” A binary judgement forces a clear decision about whether the output did its job. If you want more resolution, write more binary checks for specific things rather than finer grades for vague ones.

Expect your criteria to move

Researchers studying how people grade model outputs found something every product team will recognise. In “Who Validates the Validators?”, Shreya Shankar and colleagues describe criteria drift: people need criteria to grade outputs, but grading outputs is how they discover their criteria. The standard sharpens as you see more data. Treat the eval set as a living document, not a contract signed on day one.

Automate only what you will fix repeatedly

Not every failure needs an automated test. Many are fixed once, by a better prompt or a missing feature. For the ones that recur, start with plain code checks: is the date in the right format, did the answer cite a source. Reach for a model acting as judge only when the check genuinely needs judgement, and validate that judge against the expert’s labels before trusting it. In Husain’s words, “what ultimately matters is how well your judge aligns with human judgments.”

Where design comes in

The most interesting result of error analysis is how many failures are not model failures at all. People ask ambiguous questions because the interface invited them to. They miss the caveat because it was in the wrong place. They get a poor answer because the product never asked for the context it needed. Reading real conversations is the fastest user research an AI team can do, and its fixes are often in the interface, not the prompt.

You cannot improve what you have not read. Start with the data, not the dashboard.

A minimal loop to start this week

  • Log every interaction with its inputs, context and output.
  • Every week, have the domain expert read thirty and note what went wrong.
  • Group the notes into failure types and count them.
  • Fix the top one; add a pass or fail check only if it can come back.
  • Run the checks on every prompt or model change, like any other test.
Read next: LLM app architecture, build for the next modelAI agent and LLM development at Molisera

Sources

  1. Hamel Husain, LLM Evals: Everything You Need to Know (opens in a new tab)
  2. Shankar et al., Who Validates the Validators? Aligning LLM-Assisted Evaluation of LLM Outputs with Human Preferences (UIST 2024) (opens in a new tab)

Frequently asked questions

What are LLM evals?

LLM evals are tests for the outputs of a language model feature. They check real or realistic inputs against criteria that matter for your product, such as whether an answer is grounded in the right source or follows a required format.

Why are generic LLM metrics misleading?

Scores like general helpfulness or similarity to a reference answer measure something, but rarely the failure that actually hurts your users. Two products can score the same and fail in completely different ways.

How many examples do you need to start evaluating an AI product?

Enough to see patterns. Reading around a hundred real outputs is usually enough to find the most common failure modes, and those tell you which evals are worth building.

Should you use an LLM as a judge?

For criteria you check repeatedly and that are hard to test with code, yes, but only after checking that its verdicts agree with a human expert on a labelled sample.

More from the journal

  1. Hiring / 7 min

    How to choose an AI development agency: a founder’s checklist

    Agency, freelancers or in-house? When each fits, eight questions to ask an AI development agency before you sign, the red flags to watch for, and how to compare proposals.

  2. Strategy / 6 min

    AI MVP development: a seven-step guide for founders

    An AI MVP is not a demo with a model behind it. Seven steps to a first version real people can use and trust, with a realistic timeline, cost drivers and the mistakes to avoid.

  3. Design / 5 min

    AI UX design: how to design for calibrated trust

    The goal of an AI interface is not more trust. It is the right amount. Two decades of human-AI research, distilled into the design moves we reach for first.