Building a test set
A test set of 500 cases sounds rigorous until you notice 480 of them are polite, one-line questions about opening hours. The model scores 98% and fails on the first angry customer with two questions in one email. A good test set isn't big. It's a fair driving test, covering the roads your system will actually drive.
In this lesson you'll learn to
- Build a test set that mixes typical inputs, every known failure mode, edge cases and adversarial inputs, with a clear expected outcome for each.
- Generate synthetic test inputs from dimensions (such as intent, persona and difficulty), and check them against real data so they stay realistic.
- Choose how many cases you need from the margin of error and the size of the difference you want to detect.
- Keep a test set healthy with versioning, a held-out split, and new cases from production failures.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.