Skip to content
AgenticAIWiki

← Chapter 16. Write the eval first

Change, measure, keep or revert

Test cases10 inputs + criteriaPrompt v1Evalgrade + pass bar

Swipe to change step

Step 1 of 7. Before touching the prompt, write the eval: ten test cases, a way to grade each output, and a pass bar. Writing the cases forces you to decide what a good answer is. Test cases (10 inputs + criteria), highlighted. Prompt v1. Eval (grade + pass bar), highlighted. arrow from Test cases to Eval. arrow from Prompt v1 to Eval.

Keys: → or J next, ← or K back, Home and End jump, Space toggles auto-play when the diagram has focus.