AiTeky Original Interactive Learning & Practice Advanced
Evaluating language-model answers: metrics, judges, statistics and release gates
Score 360 real answers of an assistant against hand-reviewed labels with exact match, key phrases, token overlap and a small model acting as judge, test the judge for position and padding bias, put confidence intervals on the scores, and write the release gate and the monitoring plan.
A language model can write an answer in a thousand ways, and a person can only read a few of them. Evaluation is the work of turning "this looks fine" into numbers you can trust, compare and put in a launch decision. Most teams get this wrong in one of two ways: they trust a score that has not been checked against people, or they trust a small difference that is only noise.
The material is the QuickBite handbook assistant of the RAG course. Its answers to 180 customer questions were recorded for two versions of the prompt, and every one of the 360 answers has a hand-reviewed label: right or wrong. You score them four ways: exact match, key phrases, token overlap (F1), and a small language model (Qwen2.5-1.5B-Instruct) acting as a judge that reads the question, the reference answer and the candidate. Then you check each scorer against the labels and see where it fails, and test the judge for position bias (does it prefer the answer shown first?) and for being swayed by polite padding.
The statistics come next: confidence intervals by bootstrap, paired comparison of two versions, and how many answers you need to see a difference. The industry lessons turn that into a release gate for the assistant (what must be true before version 2 replaces version 1) and a monitoring plan for after launch: how many answers to hand-label each week, and how to keep a judge honest.
Everything runs in the browser on the recorded answers and the recorded judge scores; the Colab box holds the judge code. You need the Python, statistics and RAG courses.
- Learn lessons explain one idea at a time and let you measure it.
- Industry ready lessons decide and plan. Each ends with the interview questions that go with it.
- βΆ Run code in your browser. Nothing to install
- β Exercises that check themselves
- π Tap a word to see what it means
Locked. Sign up free
Learn
Understand each idea with everyday examples. No coding background needed.
- 01 50 min Free sample π AiTeky Pass Scoring an answer: exact match, key phrases and overlap Build three scorers from scratch (exact match, a key phrase, token-overlap F1), run them on 360 real assistant answers that people have labelled right or wrong, and see which one agrees with the people and where each one fails.
- 02 55 min π AiTeky Pass A model as judge Let a small language model read the question, the reference and the answer, and say Yes or No. Turn its next-word scores into a verdict, measure it against the human labels, and find the one kind of answer it gets wrong.
- 03 55 min π AiTeky Pass Biases of a judge Show a judge the same two answers in both orders and count how often it changes its mind, add a polite introduction and closing to an answer and see how its score moves, and learn the checks that make a judge's verdicts safe to use.
- 04 55 min π AiTeky Pass How sure is a score? Put confidence intervals on accuracy by bootstrap, compare two prompt versions on the same questions with a paired test, see why slices of 60 questions say very little, measure agreement between raters with Cohen's kappa, and work out how many answers you need.
Industry ready
Real problems from real jobs, and the questions interviewers ask about them.
- 05 55 min π AiTeky Pass On the job: a release gate Write the rules that decide whether prompt version 2 may replace version 1, compute every number the rules need (paired gain, precision of the answers given, refusals of unanswerable questions, slices), see whether an automatic score can run the gate, and write the decision.
- 06 55 min π AiTeky Pass On the job: watching it after launch Plan the weekly check on a live assistant. Work out how many answers to hand-label, simulate how often a real drop in quality is caught, sample by topic so the small topics are seen, see how thumbs-down feedback misleads, and write the monitoring plan with alerts.

