Lesson 1 · Unit 04
Evals
Test cases, graders and how much a score can be trusted
What you practise
- A set of cases with expected behaviour, grading by exact match, by code and by a model, how many cases a difference needs, rerunning on every prompt change
Try a question from this lesson
Pick one
You improve a prompt, try three inputs by hand, like what you see and ship it. Complaints go up. What was missing?
Correct answer
A fixed set of test cases, run before and after the change
Why
Three hand-picked inputs show what you hoped to see. A fixed set of cases with expected results, run on the old prompt and on the new one, shows what actually changed, including the cases that got worse.
The idea
Concept cards are short on purpose. In the app they appear between questions, after you have met the idea.
Concept
An eval is a test suite
An eval has three parts: cases (an input and the behaviour you expect), a grader that decides pass or fail, and a score.
Run it on every change to the prompt, the model or the retrieval, the way unit tests run on every commit. Without one, every change is a guess.
10 more exercises in the app
- 1× match the pairs
- 2× type the answer
- 4× multiple choice
- 1× fill the blanks
- 1× order the lines
- 1× true or false
Bitpath is an iOS app in development. Join the waitlist and you get one email when it is ready to try.