AI Product Engineering
Block 3: Agents, Evaluation & Deployment
Traditional testing: same input β same exact output.
AI testing: same input β probabilistic output β "correct" is a matter of degree.
Different framework required β not a different level of rigour.
Is the answer factually accurate? Supported by context?
Does it actually answer the question asked?
Same question, different phrasing β same answer?
The model is not lying β it is predicting the most likely token sequence. The result can be fluent, confident, and completely wrong.
| Category | Tests |
|---|---|
| Out-of-scope | Does it refuse or hallucinate? |
| Ambiguous | Does it clarify or guess? |
| Contradictory | Does it maintain consistency? |
| Edge case | Empty, very long, special characters |
| Injection | "Ignore all previous instructionsβ¦" |
Next Session: Security, Privacy & Responsible AI