Courses / Data, AI & infrastructure / LLM Evaluation & Testing

₹399Self-paced

LLM Evaluation & Testing

Build a reproducible evaluation harness for an LLM feature with a golden dataset, deterministic checks, a calibrated judge, safety and cost tests and a release gate.

  • Who it's for. Developers who build AI features and write unit tests, and need evidence that a model change is better, not just different.
  • Before you start. Completed AI Application Foundations and Software Testing and TDD, or equivalent: you can write and run a Python script that reads JSON/CSV files, call or stub a model API, and write a unit test with assertions.
  • 30 to 51 hours of study with practice
  • 8 modules, 50 lessons
  • 4 guided projects and a final project

What you'll learn

  • Write an evaluable task statement, property matrix and pre-registered decision rules for an LLM feature.
  • Score outputs with deterministic exact, structural, constraint, numeric, classification and tool-trace checks.
  • Test robustness with metamorphic and perturbation tests, repeated runs and paired bootstrap comparison with uncertainty.
  • Run red-team, over-refusal and PII-leak tests using benign canaries and a severity-weighted release gate.
  • Assemble a reproducible regression harness with record/replay, run diffs, failure taxonomy, gate and report.

Skills you'll gain

  • Evaluation goals
  • Datasets
  • sampling
  • Deterministic checks
  • Judges
  • human review
  • Robustness tests
  • Safety
  • privacy tests
  • Cost
  • latency
  • Regression harness

Tools you'll use

  • Python
  • JSONL
  • LLM judge (recorded verdicts)
  • Paired bootstrap statistics

Details to know

  • Certificate on completionIssued after your final project is reviewed
  • 8 module checkpointsA quiz and a practical task close each module
  • Self-pacedStudy any time; your progress is saved

How every lesson works

Each lesson follows the same four steps, so you always know what comes next.

  1. 01

    Watch & Learn

    A short animated video explains one idea at a time.

  2. 02

    Guided Practice

    Work through an example step by step and check the result.

  3. 03

    Quiz & Challenge

    Short questions check the idea has landed before you move on.

  4. 04

    Mini Project

    Build something useful from a project brief.

Learn at your own pace

This is a self-paced course. There are no live classes and no fixed timetable.

  • Start any timeStudy when it suits you. Lessons are short, so they fit around work or college.
  • Pick up where you left offYour progress is saved to your account.
  • Ask when you're stuckUse Ask Mentor inside the learning platform.

Your path in 3 phases

Each phase ends with something you have built and checked.

  1. 01

    Modules 1 to 3

    Goals, datasets and deterministic checks

    Write a testable evaluation spec, build and version a golden dataset, and score outputs with checks that need no judge model.

    You build: Guided project: Evaluation spec and golden set for the triage assistant.

  2. 02

    Modules 4 to 6

    Judges, robustness and safety

    Calibrate an LLM judge against human labels, test robustness with paired statistics, and run red-team, over-refusal and PII tests.

    You build: Guided project: Scoring suite: deterministic checks and a calibrated judge.

  3. 03

    Modules 7 to 8

    Cost and the regression harness

    Model cost and latency against quality, then assemble a harness that replays recordings, diffs runs and gates changes.

    You build: Guided project: Robustness, safety and cost reports; The regression harness.

Full curriculum

8 modules and 50 lessons, 30 to 51 hours of study

01Evaluation goals6 lessons, 3 to 4 hours

Lessons

  • Writing an evaluable task statement for an LLM feature
  • Choosing quality properties and ranking them by severity
  • Offline, online and human evaluation: what each can show
  • Metric validity: proxies, construct gaps and Goodhart failures
  • Writing acceptance thresholds before looking at results
  • Assembling the evaluation spec as a machine-checked document

After this module you can

  • Rewrite a one-line feature wish as a task statement naming input type, output type, success condition and out-of-scope inputs.
  • Build a property matrix for an LLM feature that lists correctness, format validity, safety, tone and latency with a severity for failing each.
  • Combine task statement, property matrix, claims and decision rules into one eval-spec.json that a validator accepts.
02Datasets and sampling6 lessons, 3 to 4 hours

Lessons

  • Anatomy of a golden-set case: id, input, expectation, tags, provenance
  • Seeded random and stratified sampling from a log of requests
  • Slice design and a coverage matrix
  • Labeling guidelines and inter-annotator agreement with Cohen's kappa
  • Contamination, leakage and a deterministic dev/test split
  • Dataset versioning with content hashes and a changelog

After this module you can

  • Define a JSONL case schema and write a loader that rejects cases lacking a unique id, input, expectation or provenance.
  • Draw a reproducible stratified sample from a request log using random.Random(seed) and show the same seed gives the same sample.
  • Create a manifest of file names, line counts and sha256 digests for a dataset release and detect an unrecorded change.
03Deterministic checks6 lessons, 3 to 4 hours

Lessons

  • Exact, normalized and set-based answer matching
  • Validating JSON output structure with a hand-written schema checker
  • Constraint checks: length, required and forbidden content, regex
  • Numeric answers: tolerance, units and extraction
  • Confusion matrix, precision, recall and F1 for classification outputs
  • Asserting on tool-call traces and agent step sequences

After this module you can

  • Implement exact and normalized matching and show with examples which normalization steps change a verdict.
  • Parse model output with json.loads and verify required keys, types and allowed values, reporting each violation separately.
  • Check a recorded tool-call trace for required calls, forbidden calls, argument values and ordering without running real tools.
04Judges and human review7 lessons, 3 to 5 hours

Lessons

  • Rubric design: criteria with anchored score levels
  • Human review protocol: independent scoring and adjudication
  • The LLM-as-judge pattern with pinned configuration and recorded verdicts
  • Calibrating a judge against human labels
  • Judge biases: position, verbosity and self-preference swap tests
  • Pairwise comparison, ties and win-rate with uncertainty
  • Judge drift, re-calibration triggers and when not to use a judge

After this module you can

  • Write a rubric with three independent criteria, each with anchored descriptions for every score level, and test it on six sample outputs.
  • Set up a review protocol with blind independent scoring by two reviewers and a rule for adjudicating disagreements, then apply it to a recorded score table.
  • Define a re-calibration schedule and drift check for a judge and list task types where a deterministic or human check should replace it.
05Robustness tests6 lessons, 3 to 4 hours

Lessons

  • Metamorphic tests: paraphrase invariance and expected-change relations
  • Perturbation slices: typos, casing, formatting, language mixing and length
  • Nondeterminism: repeated runs, variance and flaky cases
  • Paired bootstrap confidence intervals for the difference between two systems
  • Sample size, power intuition and multiple comparisons
  • Detecting distribution shift between the eval set and fresh traffic

After this module you can

  • Write metamorphic relations (same label after paraphrase, changed label after a negation) and compute the violation rate on recorded output pairs.
  • Group recorded results by perturbation type and compare accuracy per perturbation against the clean baseline in a table.
  • Compare label shares, length distribution and tag coverage of the eval set against a recent traffic sample and flag shifts above a threshold.
06Safety and privacy tests6 lessons, 3 to 4 hours

Lessons

  • A safety risk register mapped to published LLM risk categories
  • Red-team case design: goals, attack library and attacker success criteria
  • Running attack suites on recorded outputs and reporting attack success rate
  • Over-refusal: measuring refusals on benign requests
  • Privacy leak tests with synthetic PII canaries
  • Severity-weighted safety scores, release blockers and eval-data handling

After this module you can

  • Create a risk register for an LLM feature mapping each risk to a published category (for example OWASP LLM Top 10 2025 titles), a test idea and an owner.
  • Write red-team cases each with a goal, a benign canary success condition and an attack-type tag, and explain why canaries replace harmful content.
  • Combine safety results into a severity-weighted score with hard release blockers, and write handling rules for the test data itself.
07Cost and latency6 lessons, 3 to 4 hours

Lessons

  • A token-based cost model with prices as configuration
  • Latency percentiles, time to first token and the problem with averages
  • Quality-cost-latency tradeoffs and the Pareto frontier
  • Budgets as automated tests: cost and latency gates
  • Evaluating caching, batching and model routing
  • Production monitoring: sampled traffic, drift signals and alert rules

After this module you can

  • Compute per-request and per-1,000-request cost from recorded input and output token counts and a price table read from a config file.
  • Compute p50, p90 and p99 latency from recorded timings and explain why the mean hides slow requests.
  • Design a monitoring plan with sampled live traffic, rolling metrics, alert thresholds and a response procedure, and test the alert logic on recorded daily metrics.
08Regression harness7 lessons, 3 to 5 hours

Lessons

  • Harness architecture: runner, model adapter and result store
  • Record and replay: hermetic runs from recorded outputs
  • Diffing two runs: flips, regressions and improvements per case
  • Failure taxonomy: labeling, counting and prioritizing failures
  • Change gating: combining rules, statistics and blockers into a verdict
  • Reproducibility manifest and the evaluation report
  • Running the harness in CI and a failure-triage workflow

After this module you can

  • Design a harness with a model-adapter interface, a case runner and an append-only JSONL result store, and run it against a stub adapter.
  • Record adapter outputs keyed by a hash of the request and replay them, and fail the run on a cache miss instead of calling a model.
  • Wire the harness to run with replay mode as a single command with exit codes, and write a triage workflow that turns a failing gate into assigned fixes.

What you'll build

4 guided projects along the way, then a final project.

  • Evaluation spec and golden set for the triage assistant

    after module 2
  • Scoring suite: deterministic checks and a calibrated judge

    after module 4
  • Robustness, safety and cost reports

    after module 7
  • The regression harness

    after module 8

Final project

Reproducible LLM evaluation harness with failure taxonomy and reporting. Choose one option: Support-ticket triage assistant evaluation | Invoice field-extraction assistant evaluation | Study-notes summarizer evaluation

What you submit

Source and artifact submission: harness code, spec, dataset with manifest, recorded outputs and reports.

How it's reviewed

Trainer-reviewed demonstration: the learner walks through the report, one regression, one failure category and the gate verdict. Marked against the course project review rubric.

Where you'll use it

  • Decide whether a new prompt or model version can ship using a pre-registered decision rule.
  • Measure over-refusal and personal-data leaks before a release.

Roles that use these skills

  • Machine learning engineer
  • AI quality engineer
  • QA engineer

Earn the certificate by building, not watching

  1. Complete the lessons and pass each module checkpoint.
  2. Build your final project and demonstrate it.
  3. OUTLEARN reviews your project and issues your certificate. It is not issued automatically.

Frequently asked questions

Do I need to call a paid model?

No. The project evaluates recorded stub outputs, and reruns with the same seeds reproduce identical results.

What should I finish first?

AI Application Foundations and Software Testing and TDD, or equivalent.

How is LLM Evaluation & Testing structured, and is it open now?

It has 8 modules and 50 lessons. It is not yet released to learners.

Be first in when LLM Evaluation & Testing opens

Email us and we will tell you as soon as enrolment opens.

Notify me when it opens
₹399Opens soon
Notify me