AI EngineeringIntermediate15 min

Evals: measuring AI behaviour

Replace vibes with a repeatable test set so you know whether a change helped.

See it on the map

An eval is a set of inputs with a way to score the outputs. Start small: 30 to 100 real examples, including the failures users have actually hit. Run it on every prompt, model or retrieval change, the way you run unit tests.

Prefer checks you can compute: exact match, schema validity, whether the right source was cited, whether a tool was called correctly. Use an LLM as judge for qualities that resist rules, such as helpfulness, but give it a clear rubric, spot-check it against human labels, and do not let a model grade its own family blindly.

Track results over time and by category, since an average can hide that one important case got worse. Add every production failure to the set so it cannot return quietly.

Key points

  • Start with 30-100 real cases, including known failures.
  • Use programmatic checks first and LLM judges second, with a rubric.
  • Calibrate any judge against human labels.
  • Every production bug becomes a new eval case.

Answer these out loud

  1. 1Design an eval for a support bot. List three programmatic checks and one rubric for a judge.
  2. 2Your average score rose 2 points but a key customer flow broke. What was missing from the eval?

Build it

Write a script that runs 40 cases through your prompt, scores them, and prints a per-category diff against the previous run.

Use this from an agent

Any MCP client, including Grok, can read this lesson. See how to connect.

REST
curl https://engineeros-delta.vercel.app/api/v1/topics/evals

This unlocks