What are evals in AI? They are tests that tell you whether an AI feature actually works, run before launch and after it. Unlike ordinary code, an AI feature gives different answers to the same input, so you cannot check it once and call it done. In my February 2026 episode with Ankit Shukla, the framing was that AI is just another API you might call, and once you call it, you need to know if it is working.
The short answer
An eval is a set of test cases plus a way to score the answers. Each case has an input, the correct answer and a check. You run the AI feature against the set and get a number. That number tells you whether to ship, fix or stop.

Why normal testing does not work for AI
Traditional code is deterministic. Write 2 + 2 and you get 4, every single time. AI does not work like that. The same prompt can give you different answers, and the same user query can produce very different results. You do not control the output the way you control code.
That is why PMs are asked to own evals. Engineers and data scientists understand the code and the models. PMs understand the outcome. You know what success looks like for the customer and the business.
The three kinds of evals
In my February 2026 episode with Ankit Shukla, we covered three types.
- Offline evals run before launch and tell you whether the feature is ready to ship.
- Online evals run after launch and tell you whether it is working in production.
- Human evals are spot-checks that tell you whether users actually like it.
Ankit’s point was that most teams only do offline evals, some do online evals, and almost nobody does human evals properly. His rule was that you need all three.
Two ways to grade an output: code or an LLM judge
Once you have test cases, something has to grade the answers. My AI evals guide for PMs splits graders into two kinds.
- Code-based checks fit when the failure is objective and a rule can catch it: valid JSON or SQL, a required or forbidden phrase, a structural limit like a summary with 3 bullet points, or a tool call that runs without errors. They are fast, cheap, deterministic and easy to read.
- LLM-as-judge fits when the failure needs interpretation. Was the tone appropriate? Is the summary faithful? A separate model grades one failure mode at a time, and it works best as a binary pass or fail.
Start with the code-based checks. An LLM judge needs 100+ labeled examples and ongoing maintenance, so save it for failures that persist after you fix your prompts. My LLM judge guide covers how to build one.
A second split is whether you have an answer key. Reference-based evals compare the output to a known correct answer, much like grading a multiple-choice test. Reference-free evals check properties instead, such as a chatbot never offering medical advice. Use reference-based checks when you can, because they are much cheaper to maintain.
Which failures to measure
Read real outputs before you pick metrics. The guide names common failure categories worth looking for: hallucination, structured output issues, ignored constraints and inconsistent style. But a dashboard full of generic scores, like a hallucination score and a helpfulness score, is the quickest sign an eval has gone off the rails. Name the failures your own product makes, then measure those.
Evals are becoming the spec
In July 2026, I did an episode with Daniel McKinnon, who was a PM on the Llama models at Meta. His approach: when a partner team wants Llama to do something, he asks them not to send a product spec or PRD, and to send him an eval directly.
Rasty Turek told me something similar from the builder side. His eval started as QA, then it became the spec, and he reckons he now spends around 90% of his time on evals. When a product is expected to do nearly everything, a PRD folds because it cannot cover every behavior. So examples become the specification. In Daniel’s words, an eval is just like a trivia question for the model.
How to build your first eval in about 90 minutes
The method below is from my episode with Daniel on building your first eval. It is for a feature that has no users yet, which I call the cold-start eval. On day zero you have no data, so you build the eval from domain knowledge. I wrote the steps so they work in Claude Code, Claude projects or ChatGPT.
- Write the problem in one sentence. For example: extract the sender’s name from support emails.
- Check your domain knowledge. If you have never shipped an AI feature, find someone who has and have them walk you through your first one.
- Set up a workspace. Create a project, upload what the feature reads, and tell the model to return three things for each case: the input, the correct answer and one line on how to check it.
- Find your floor. Pick the easiest genuine case and check that the model can do it at all.
- Find your ceiling. Pick a case you believe nothing can solve yet. If you cannot find a failing case, your eval is already saturated and will never tell you anything.
- Fill in the middle. Have the model generate more cases that sit between the easy and the hard one, without repeating a case type.
Around 100 cases is typical. You use AI to build the test for the AI, which is the only way this takes 90 minutes instead of two weeks.
How to score it, and how to read the number
Use binary pass or fail. For each output, the grader marks PASS only if every criterion is met: the substantive answer, the format and the scope. Calibrate the judge before you trust it. It takes around 30 minutes and makes the difference between a score and a guess.
Then read the number. Say your eval comes back at 50%. Is that shippable? Probably not. Go one level down and ask which slices you are good at. Then put guardrails on the product so it only answers the kinds of questions it gets right 80% of the time. That is a PM call. Everything below the line goes back to the research or engineering team with a specific ask, so you hand them a target instead of a feeling.
Write a rubric a second person can use
A rubric defines what good looks like. Start with the user, not the AI. For a customer support bot, bad success criteria is “the response is helpful”. A good one is “the response contains the correct return window and includes the return portal link”. In my February episode I suggested having 2 to 3 people independently grade the same 10 outputs. If they disagree, the rubric is ambiguous.
Here is how that support-bot rubric grades two answers. One states the return window and links the return portal: pass. The other apologizes warmly and says returns are easy, with no window and no link: fail, however helpful it sounds.
Why this matters for your career
Daniel estimated that there are fewer than 100 PMs building frontier models worldwide. If you are building toward AI PM roles, my AI evals guide for PMs is the longer version, and my LLM judge guide and step-by-step guide with Hamel Husain and Shreya Shankar go further. If you are job hunting for AI PM roles, my AI PM interview guide covers that loop.
Frequently asked questions
What are evals in AI?
Tests that check whether an AI feature works. Each has an input, a correct answer and a way to score the output. You run them before launch (offline), after launch (online) and with human spot-checks.
What is the difference between offline and online evals?
Offline evals run before launch and say whether the feature is ready to ship. Online evals run in production and say whether it works for real users. A good offline score predicts a satisfied online user, but it does not always hold.
Why should PMs own evals?
PMs understand the outcome: what success looks like for the customer and for the business. Daniel McKinnon asks partner teams to send him an eval instead of a PRD.
How many test cases do I need?
Around 100 is typical for a first eval set, built between an easy floor case and a hard ceiling case.
What score is good enough to ship?
It depends on the slice. At 50% overall, I would not ship. Look at which kinds of questions the feature gets right 80% of the time, and guardrail the product to those.
Want the paid deep dives on evals? Subscribe to the newsletter.