IamBishal

AI Engineering · Tutorial Series

Build an eval suite for an LLM feature

Know whether a prompt or model change made your LLM feature better or worse: a golden set, code graders, an LLM judge calibrated against trusted labels, honest version comparisons and a CI regression gate.

By Bishal Saha · Updated

  • 3 Modules

    5 lessons live

  • Beginner

    Level

  • 2+ hours

    Learning Content

Start Learning

About This Tutorial Series

Know whether a prompt or model change made your LLM feature better or worse: a golden set, code graders, an LLM judge calibrated against trusted labels, honest version comparisons and a CI regression gate.

What we build: The Helpline reply drafter: one Claude call that takes a support ticket plus the knowledge base and returns a structured draft (reply, cited_articles, escalate). The tutorial builds an eval suite around it: a 40-case golden set, code graders, a calibrated LLM judge, a v1-vs-v2 prompt comparison and a CI gate that replays recorded runs.

What You'll Learn

  • Explain why reading a few outputs can't tell you whether a change helped. Then turn the drafter's failures into named pass/fail criteria and choose a grader type (code, LLM judge or human) for each.
  • Build a 40-case golden set and the drafter with structured output, then grade every case with deterministic graders and write results to JSON Lines. Also be able to say what code graders cannot check.
  • Build a single-criterion pass/fail judge and calibrate it against 60 labels known by construction. Read its confusion matrix (FAIL is the positive class) with TPR, TNR and Cohen's kappa. Improve it by
  • Decide whether prompt v2 beats v1 on the same 40 cases using paired differences, discordant cases and a bootstrap confidence interval. Estimate how many cases a decision needs, correct for the judge's
  • Ship a CI regression gate with per-criterion thresholds. It runs code graders and replays recorded judgements without calling the API, and you prove it fails on a seeded regression. Then sample produc

Prerequisites

  • Before you start

    Python. The Helpline tutorials (Build a production MCP server, Build a bounded agent) help but are not required: the feature under test is self-contained.

Course Curriculum

  1. Why reading a few outputs is not an eval, then a golden set, the drafter with structured output, and four code graders over a recorded run.

Reviews (0)

No reviews yet

Finish a lesson and be the first to share what you thought.

View All Tutorials

Bishal SahaLet's build together

Have a system to design, or an AI feature to get right?

Tell me about the problem. You'll get a clear, honest view of the best way forward.

  • Reply within 24 hoursOn business days, with my honest view and a next step.
  • Accepting select engagementsArchitecture, AI features and full builds.
  • Remote, worldwideWorking with startups, SMEs and enterprises.