Evaluate your prompts in prod, from human-graded to model-graded

Your prompt works in demos but silently regresses in prod? LLMs don't have standard unit tests. You install Workbench (human eval), then promptfoo (automated code-graded + model-graded eval), with deterministic assertions and LLM-as-judge for subjective quality. By the end, your prompt is gated by a CI that fails as soon as a regression shows up.

Level : intermediate · Duration : 240 min

Modules

  1. 1. Why evaluate a prompt, concept + 4 canonical components : A prompt in prod without evals = code without unit tests. You learn what an LLM eval is (vs a generic benchmark), why writing evals BEFORE the prompt saves time, and the 4 canonical components (Input / Golden Answer / Output / Score) that structure every evaluation.
  2. 2. Anthropic Workbench, first human eval (1-5 rubric) : Before automating, score by hand. Anthropic's Workbench is the fastest IDE to iterate a prompt and diff 2 versions side-by-side. You learn how to set a 1-5 human rubric, run a mini-eval on 3-5 cases, grade honestly (not 5/5 everywhere), and recognize when to move on to code-graded (the next module) or model-graded (LLM-as-judge, the last module).
  3. 3. Code-graded, deterministic assertions + classifier metrics : When the output is deterministic (category, JSON, strict format), you can grade it in code: equals, contains, regex, is-json. You learn the loop prompt → code eval → score → iteration on the Anthropic leg-counter case (3 prompts v1/v2/v3, score 66% → 100%), then move to the more realistic case: a 5-class ticket classifier scored with accuracy / precision / recall and a confusion matrix. Pure Python, no framework, the next module introduces promptfoo.
  4. 4. promptfoo, eval framework YAML, multi-provider, custom graders : promptfoo industrializes evals: versionable YAML config, multi-provider runs (Claude vs GPT-4 vs Haiku), custom Python graders for your business logic, HTML dashboard with clickable outputs. The vitest run of your prompts. The stack you keep in prod.
  5. 5. Model-graded, LLM-as-judge with structured rubric : When output is subjective (empathetic tone? grade-school summary? prompt that politely refuses?), no code grader is enough. We use Claude to evaluate Claude, with a structured rubric and a versioned judge prompt. Cost, bias, threshold, and code+model graded combo. The module that closes the course.

Mentioned in the journal

View on Coeurdar