WhoBuilt

Evals Are Not Unit Tests

Aug 6, 2025· 15 min· 15K views·Watch on YouTube

Speaker

Ido Pesok, an engineer at Vercel working on v0, explains how application-level evals can help teams make AI products more reliable.

Why AI apps need evals

Pesok distinguishes application-level evals from the model evaluations research labs publish. He illustrates the reliability problem with Fruit Letter Counter: GPT-4.1 answered a strawberry letter-counting prompt correctly twice, but later gave a user the wrong answer. A more elaborate prompt passed ten tests, then failed on a request covering several fruits.

Map the product’s court

Pesok uses a basketball court to represent the product’s use cases: prompts are data points, the task is the approach used to answer them, and the score checks whether the answer succeeded. Teams should collect real user prompts, mark which are in scope, and test across the full range of relevant requests. He suggests gathering feedback from ratings, observability logs, community forums, and social media.

Keep data and tasks reusable

Pesok recommends keeping user questions as the constant data and putting changing system prompts, preprocessing, or retrieval methods in the task. That lets teams compare approaches without rebuilding their dataset. He also recommends sharing middleware and as much of the production code as possible between the app and its evals.

Score simply and run evals in CI

Scoring depends on the task, but Pesok advises using deterministic pass or fail checks where possible and keeping the scoring logic understandable. When code cannot capture the signal, human review is acceptable; small prompt adjustments can also make outputs easier to score. Running evals in CI helps teams see whether a code or prompt change improves some cases while regressing on others.

Use practice to measure improvement

Pesok frames evals as a practice environment for comparing models and changes to prompts or retrieval. Measurement helps teams see whether a change actually improves the app and where failures remain. He says this can improve reliability and quality, support conversion and retention, and reduce support and operations work.

Takeaways

  • A few successful demos or tests do not establish that an AI feature works reliably for users.
  • Build an eval dataset from real user requests and cover the full range of in-scope cases.
  • Keep eval data separate from the changing prompts and methods being tested.
  • Share production logic with evals so practice reflects how the app actually runs.
  • Use clear scoring and run evals on changes to catch both improvements and regressions.

Mentioned in this talk

Search inside this talk

What was claimed 12

Show all 12 facts

Related talks