Free self-study · No account needed · Progress stays in this browser. Back it up before clearing site data or changing devices.

← All weeks

AI Security and Reliability / Week 19

Evaluation and Observability

Build an evaluation harness and trace report. Expand existing checks into versioned datasets, component metrics, calibrated judgments, and linked traces.

Your lessons

  1. 01

    Designing representative evaluation sets

    60 minutes planned · 7 sections
    Start →
  2. 02

    Calibrating model-based evaluation

    60 minutes planned · 7 sections
    Start →
  3. 03

    Tracing latency, tokens, and failures

    60 minutes planned · 7 sections
    Start →

// Put it into practice

An evaluation harness and trace report

  1. Download week19.py from a lesson's practice section. Follow its setup instructions before running it.
  2. Lesson 1: Expand the existing harness with normal, unanswerable, unauthorized, and long-context tasks.
  3. Lesson 2: Compare supplied adjudicated examples, objective checks, and optional model judgments in both answer orders.
  4. Lesson 3: Instrument a retrieval-model-tool pipeline and inject a slow retry.
  5. Run the supplied assertions and record actual results; a simulated contract check does not certify real model quality.
Download week 19 Python lab ↓

Read the script’s setup instructions and run it on your own computer. The website does not execute code or verify your results.

// Independent work

W19-LAB

Week 19: An evaluation harness and trace report

Expand existing checks into versioned datasets, component metrics, calibrated judgments, and linked traces.

Extend the guided artifact rather than start a second project. Metrics identify slices and failure stages; report uncertainty and simulated versus measured cost distinctly.

What to produce

  • An evaluation harness and trace report
  • Setup commands, data or generation procedure, versions, and recorded outputs
  • Acceptance results and a precise limitation

Check your work

  • Metrics identify slices and failure stages; report uncertainty and simulated versus measured cost distinctly.
  • Each claimed execution is supported by actual saved output.
  • Fixture results and real model results are identified separately.
  • Setup and reproduction use the taught tools without private credentials.
Self-assessment rubric
Technical correctness · 35 points
Implementation or analysis follows the relevant technical mechanism and handles the stated case.
Evaluation and evidence · 30 points
Reproducible tests, appropriate baseline, and accurate interpretation.
Engineering quality · 20 points
Clear structure, safe boundaries, and usable reproduction instructions.
Explanation and reflection · 15 points
Explains tradeoffs, limitations, and next experiment with evidence.

// Retrieve before you reread

Week 19 knowledge check

Try all 6 questions. Check your answers, review the explanations, and retry whenever you like. Answers are checked on this device.

1. An evaluation passes 46 of 50 public requests and 0 of 6 restricted-document requests. Which release finding is justified?
2. A task requires search(account="C7"); a system calls search(account="C8") and accidentally returns the expected number. Which check fails?
3. A judge prefers the first displayed answer in six paired cases, then prefers the first displayed answer again after swapping each pair. What should be reported?
4. A source permits archive deletion only after approval. A concise answer preserves approval; a longer answer omits it. Which grading criterion should decide?
5. Seven sorted request times are 3,4,4,5,6,7,90 milliseconds. Using nearest-rank 95th percentile, which tail value is selected?
6. A request retries a committed ticket after losing its response. Which record is needed to prevent a duplicate business effect?

Next: week 20 →