A. Module overview
| Field | Value |
|---|---|
| Module ID | L2-M02 |
| Level | 2 - AI Quality Engineer (Evaluation) |
| Description | Design a versioned evaluation dataset: choose sources (real logs, expert-written cases, synthetic data) and handle personal data; coverage matrix and stratified sampling; labelling guidelines and reference answers; synthetic data generation with a filtering step; versioning, contamination and privacy. The lab builds up a small toolkit for the fictional math-tutoring chatbot of L2-M01 (HocVui Tutor), running offline with logs, annotators and a simulated generator, all seeded. |
| Why this module matters | Every evaluation number is only as good as the data it runs on. A dataset that is skewed, missing important cells, ambiguously labelled, duplicated or contaminated gives numbers that look good and mean nothing, and that failure is silent. This module teaches how to build a dataset that others can check and trust. |
| Target professional competency | Level 2: "Build and version an evaluation dataset with documented coverage and labelling guidelines". |
| Estimated duration | 4 lessons × 90 minutes + 1 lesson × 120 minutes = 8 hours + module assignment ~4 hours + quiz 0.5 hours ≈ 12.5 hours for someone who has completed L2-M01. An estimate, not yet measured with real learners. |
| Prerequisites | L2-M01 (strategy, statistics for eval) and Level 1. High-school math. No API key needed. |
| Module output | A versioned evaluation dataset (with a source plan, coverage matrix, guideline, changelog and dataset card) |
| Cost | 0 VND |
What learners build. Step by step, in code-labs/l2-m02: (L01) a source plan and a PII screen; (L02) a coverage matrix (intent × style, risk by intent), stratified sampling and weighted estimation; (L03) a labelling guideline, agreement and reference answers that code can check; (L04) a simulated generator and a filter funnel; (L05) versioning, a dev/test split, a contamination check and a release gate. The lab is independent of l2-m01 and needs only pytest.
B. Learning objectives
| ID | Objective |
|---|---|
| MO1 | Choose data sources, state the bias of each, and handle personal data by redacting, replacing with made-up data or excluding. |
| MO2 | Compute a coverage matrix, split a sample size across strata and estimate a population rate with weights. |
| MO3 | Write a labelling guideline and reference answers, measure agreement and adjudicate disputed cases. |
| MO4 | Generate synthetic data under control with a filter funnel and state what the filter does not catch. |
| MO5 | Release a versioned dataset with a changelog, a stable dev/test split, a contamination check and a privacy review. |
C. Lessons
| ID | Lesson | Duration | Prerequisite | Concepts | Practical output |
|---|---|---|---|---|---|
| L2-M02-L01 | Data sources for a dataset: real logs, expert-written cases, synthetic data | 90' | L2-M01-L05 | three sources, sampling from a log, PII, source plan | A source plan with a privacy note |
| L2-M02-L02 | Coverage and stratified sampling | 90' | L01 | matrix, empty cells, strata, weights | An intent × style coverage matrix, risk by intent |
| L2-M02-L03 | Labelling guidelines and reference answers | 90' | L02 | guideline, agreement, adjudication, checkable reference | A guideline with labelled examples |
| L2-M02-L04 | Generating synthetic data and its risks | 90' | L03 | generate then filter, funnel, diversity, filter blind spots | Generated cases with a filtering step |
| L2-M02-L05 | Dataset versioning, contamination and privacy | 120' | L04 | changelog, hash split, n-gram, release gate, dataset card | A versioned dataset with a changelog |
D. Hands-on assignment (module assignment)
The module assignment (a versioned dataset for an AI feature, with a report on sources, coverage, agreement and the changelog) is in exercises.md. The five standalone exercises for the individual lessons are in code-labs/l2-m02/exercises/ and in §9 of each lesson.
E. Module assessment
The module quiz quiz.md, the module assignment rubric in exercises.md, and the practice-0N.md practice for each lesson. The solutions and the instructor guide are for instructors only and are not published.
F. References
The shared list references.md; each lesson also has its own references table in §12 with access dates.
Objectives ↔ assessment matrix
| Objective | Lesson | Standalone exercise (§9) | Module quiz |
|---|---|---|---|
| MO1 | L01 | exercises/test_l01_sources.py + my_source_plan.json |
(to be added with the quiz) |
| MO2 | L02 | exercises/test_l02_coverage.py |
(to be added with the quiz) |
| MO3 | L03 | exercises/test_l03_guideline.py + my_guideline.json |
(to be added with the quiz) |
| MO4 | L04 | exercises/test_l04_filter.py |
(to be added with the quiz) |
| MO5 | L05 | exercises/test_l05_release.py + my_manifest.json |
(to be added with the quiz) |