Back to the curriculum

L2-M02 · Level 2 · ~12.5 h

Evaluation Dataset Design

What you build: Versioned evaluation dataset

lessons
5
lesson hours (estimate)
≈ 8 h
0/5 lessons marked done · Progress is saved in this browser only. No account, nothing is sent to a server.
In review. The curriculum, module overviews and Levels 1–3 lessons are drafts written with AI assistance and reviewed by AI. Human review is still pending. English translation: AI-assisted, not human-reviewed.

Levels 1–3 lessons, exercises and quizzes are published as drafts, in Vietnamese with an AI-assisted English translation. They may change after human review.

Module path

  1. Lesson 1 · L2-M02-L01≈ 1.5 h

    Dataset sources: production samples, expert-written, synthetic

    What you build: Source plan with privacy notes

    Needs: L2-M01-L05

    Key terms (10)
    • Evaluation datasetBộ dữ liệu đánh giá
    • CaseMột đơn vị kiểm tra: input kèm kỳ vọng
    • Source planKế hoạch nguồn dữ liệu
    • Production logLog từ môi trường thật
    • Synthetic dataDữ liệu tổng hợp
    • IntentÝ định của người dùng (loại câu hỏi)
    • Representative sampleMẫu đại diện
    • PIIThông tin định danh cá nhân
    • Redact / Pseudonymise / ExcludeẨn / thay bằng dữ liệu bịa / loại khỏi dataset
    • Blind spotĐiểm mù của công cụ
  2. Lesson 2 · L2-M02-L02≈ 1.5 h

    Coverage and stratification

    What you build: Coverage matrix across intents and risks

    Needs: L2-M02-L01

    Key terms (9)
    • Coverage matrixMa trận độ bao phủ
    • Dataset coverageĐộ bao phủ của dataset (khác coverage của khoảng tin cậy)
    • DimensionChiều: thuộc tính làm đổi hành vi
    • CellÔ của ma trận
    • Stratum / stratified samplingTầng / lấy mẫu phân tầng
    • AllocationCách chia cỡ mẫu cho các tầng
    • Weighted rateTỷ lệ có trọng số
    • Edge case / adversarial caseCa biên / ca đối kháng
    • Prompt injectionChèn chỉ dẫn để đổi hành vi của model
  3. Lesson 3 · L2-M02-L03≈ 1.5 h

    Labelling guidelines and reference answers

    What you build: Guideline document plus labelled examples

    Needs: L2-M02-L02

    Key terms (8)
    • LabelNhãn
    • Reference answerĐáp án tham chiếu
    • Labelling guidelineHướng dẫn gắn nhãn
    • Counter-examplePhản ví dụ
    • Borderline caseCa lưng chừng (ca nằm giữa hai nhãn)
    • Chance agreementĐộ đồng thuận do ngẫu nhiên
    • AdjudicationPhân xử ca bất đồng
    • AnnotatorNgười gắn nhãn
  4. Lesson 4 · L2-M02-L04≈ 1.5 h

    Synthetic data generation and its risks

    What you build: Generated cases with a filtering step

    Needs: L2-M02-L03

    Key terms (7)
    • Synthetic data generationSinh dữ liệu tổng hợp
    • Filtering step / filter funnelBước lọc / phễu lọc
    • Near-duplicateBản gần trùng
    • Template (khuôn câu) / template capKhuôn câu / giới hạn số case mỗi khuôn câu
    • DiversityĐộ đa dạng
    • VerifierBộ xác minh đáp án
    • HomogeneityĐồng dạng: các case giống nhau về văn phong và khuôn câu
  5. Lesson 5 · L2-M02-L05≈ 2 h

    Versioning, contamination and privacy

    What you build: Versioned dataset with a changelog

    Needs: L2-M02-L04

    Key terms (10)
    • Dataset version / changelogPhiên bản dataset / nhật ký thay đổi
    • ManifestTệp mô tả một bản phát hành
    • FingerprintDấu vân tay (hash nội dung)
    • ContaminationNhiễm dữ liệu: case đánh giá lọt vào nơi hệ thống đã thấy
    • n-gramDãy n từ liên tiếp
    • Dev / test splitChia phần tinh chỉnh / phần báo cáo cuối
    • Release gateCổng release
    • ExemptionNgoại lệ có lý do
    • Dataset cardTài liệu mô tả dataset
    • Retirement ruleQuy tắc cho case rời bộ chính

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)