Step 18 of 36 · Engineering practice
Evaluating AI features before shipping
A product team with no ML background can still build an evaluation. Without one, you ship on the strength of a demo.
Your product engineers know how to test deterministic code. An AI feature needs something else: a judgement, across many realistic cases, of whether the output is good enough. You do not need a research team for this. You do need an owner.
Make it a launch requirement. The team collects real examples, awkward ones included. Someone who knows the domain reads outputs and names the types of failure. Those become checks, some automated and some sampled by people, that run whenever the prompt, the model or the data changes. Before launch, the team agrees with product which failures are acceptable and how often.
The common mistake is to treat a model upgrade as a routine dependency bump. It is a behaviour change, and the evaluation must run again.
Try this week
- Sit with one feature team and a domain expert, read forty real outputs and name each type of failure.
- Add a launch checklist item: no AI feature ships without a written evaluation and a named owner for it.
Signs you've got it
- Every AI feature has an evaluation set that runs when its prompt or model changes.
- A domain expert, not only an engineer, has judged what good output looks like.
Resources
- articleA Field Guide to Rapidly Improving AI Products (opens in a new tab)Hamel Husain
- guideAI Evals: Everything You Need to Know (opens in a new tab)Hamel Husain and Shreya Shankar
- paperWho Validates the Validators? Aligning LLM-Assisted Evaluation of LLM Outputs with Human Preferences (opens in a new tab)Shreya Shankar and colleagues
- articleEmerging Patterns in Building GenAI Products (opens in a new tab)Bharani Subramaniam and Martin Fowler
- articleEngineering Practices for LLM Application Development (opens in a new tab)David Tan and Jessie Wang
Talks to watch
- 107 minWhy AI evals are the hottest new skill for product builders (Lenny's Podcast) (YouTube, opens in a new tab)Hamel Husain and Shreya Shankar
- 14 minAI Eval Concepts Explained in 15 Minutes (YouTube, opens in a new tab)Hamel Husain