Evals Are Not Just Unit Tests
Lenny offers the intuitive metaphor that evals are like unit tests for code, and Shreya pushes back. Unit tests only check non-negotiable, well-defined behaviors; evals are a much broader spectrum that includes measuring open-ended, ambiguous quality, spotting new user cohorts, and tracking product signals over time.
- Unit tests only cover clear-cut, non-negotiable functionality
- AI assistants do open-ended tasks that need fuzzier measurement
- Evals can surface new user cohorts and distribution shifts in your data
- Unit tests are a very small part of a much bigger evals puzzle
“Uh the way I think about eval and tell me if this is wrong just simply is like unit tests for for code and then…”
“So I would say on the end on overall right unit tests are a very small part of that very big puzzle.”