internalsGet Pro

AI Engineering · Module 08

Evaluating AI applications

Lessons
15
Free
0
Reading
~5 h

Your progress

0 / 15 lessons done

Sign in to track

Lessons

  1. Evals: testing systems that never answer the same wayEvery change to a prompt, a model or a retrieval setting changes thousands of replies at once, and a few tries by hand can’t show which ones got worse. An eval is how you find out before your users do.14 min
  2. Building an eval set from real examplesEvery eval score is only as good as the examples behind it. Engineers who build the set carefully can tell a better prompt from a lucky one; engineers who don’t ship changes on noise and learn about them from customers.18 min
  3. Code-based checks: exact match, rules and schemasEvery eval starts with the checks that cost nothing to run. They catch broken output on every change, in seconds, and leave the paid judge only the questions that need judgement.15 min
  4. Testing code that calls a model: fakes and recordingsMost bugs in a model feature live in the code around the call: ids, retries, limits and error handling. Tests that fake the model catch them on every push, in seconds and for free, and leave the evals to judge what the model writes.18 min
  5. LLM-as-judge: grading outputs with a modelMost of what makes an AI feature good, such as following a policy or answering the real question, can’t be checked by code, and people can’t read every output after every change. A judge you can trust lets you change a prompt and know within the hour whether it got worse.18 min
  6. Judge calibration: checking LLM judges against peopleOnce a model grades your AI feature, every release decision rests on that grader. If nobody has checked it against people, a judge that passes bad outputs makes a worse release look like a better one.18 min
  7. Human review and labelingEvery eval and every LLM judge is only as good as the human labels it is checked against. When you ship an AI feature, someone has to decide what “good” means and grade real outputs against it, every week, without wasting the time of the people who know the work best.16 min
  8. Evaluating RAG: retrieval and answer qualityEvery RAG feature keeps changing: new chunking, a new embedding model, a new prompt. When quality drops, two stage scores tell you in minutes which half to fix; one pass rate leaves you reading drafts for a day.17 min
  9. Evaluating agents: task success and trajectoriesAn AI agent that passes a demo ticket can still fail the same ticket on another run. Before it touches thousands of real tickets, you need tests that check what it left behind, how it got there and how often it gets the same right answer.20 min
  10. Simulated users: testing agents before launchAs soon as an AI agent asks a person something and waits, the next input depends on its own last message, so a fixed test can’t follow it. A model that plays the person is how teams test those conversations before real customers meet them, and knowing where that model lies to you is what makes its results worth trusting.18 min
  11. Regression testing for prompts and modelsA prompt edit or a new model id passes every unit test while it changes what thousands of replies say. A regression run on a fixed eval set, compared ticket by ticket, is how you find out before your users do.18 min
  12. Online evaluation: A/B tests and user feedbackEvery AI feature ships with an offline eval that passed. Whether people actually find it more useful only shows up in live traffic, and a badly run test there either ships a worse version or hides a better one.18 min
  13. Error analysis: finding what to fix firstEvery eval run ends with a pile of failures and a temptation to change the prompt. Engineers who read and sort the failures first fix the cause that matters most, and often find that some failures belong to the eval itself.17 min
  14. Case: how Shopify evaluates its merchant agentEvery team that ships an AI agent has to decide when a change is good enough for real users. Shopify published how it makes that call for Sidekick, so you can see a full eval pipeline at large scale and take the parts that fit your own size.22 min
  15. Lab: an eval harness for a support assistantEvery prompt or model change to an AI feature raises the same question: what did it fix, and what did it break? A small harness that saves outputs and splits cheap checks from model grading answers it in minutes, for about a dollar.24 min

Practise with

Terms this module teaches 83

Open glossary

A/B test

An experiment that sends a random share of live traffic to each of two versions and compares an outcome between them.