AI PM 10X / TECHNICAL FOUNDATIONS

AI Evals

How to measure whether your AI system is actually working, and keep it working as models, prompts, and usage patterns change.

Overview

AI evals are the systematic process of measuring how well your AI system performs against defined criteria. Unlike traditional software testing, where a function either passes or fails, AI output is probabilistic and often qualitative. The same prompt can produce a great answer one day and a subtly wrong one the next.

For product managers, evals are the mechanism that turns "we think the AI is good" into "we can demonstrate the AI meets our quality bar." They make model upgrades, prompt iterations, and production incidents manageable, because you have a baseline to compare against rather than gut feel.

The whole picture, on one page

A visual summary you can screenshot, share, or come back to

Why It Matters for PMs

Shipping blind

Without a baseline eval suite, quality regressions tend to reach users before the team catches them. Every model update or prompt change becomes a bet.

Model swaps

Provider pricing, capability, and availability change constantly. Evals give you the data to migrate confidently instead of re-litigating "feels better" debates.

Stakeholder trust

Evals translate vague "AI quality" into numbers that engineering, legal, and leadership can all read, making go/no-go decisions defensible.

Key Concepts

The eval stack: three layers every AI product team should operate

1

Automated evals

Fast · Scalable · Cheap

Run on every deploy. Include exact-match checksexact-match checksCompares the model's output character-by-character to a known correct answer. Useful for classification, structured extraction, or any task with one right answer.Anthropic eval guide, regex patternsregex patternsUses regular expressions to verify an output matches a required pattern: for example, that a response contains a phone number format, a required keyword, or valid JSON structure.Prompt optimisation guide, LLM-as-judgeLLM-as-judgeUses a capable model (e.g. Claude or GPT-4) to score another model's output against a defined rubric. Research shows ~80% correlation with human raters on open-ended tasks.MT-Bench paper (UC Berkeley) scoring, and embedding similarityembedding similarityConverts both the model's output and the expected answer into numerical vectors, then measures how close they are (cosine similarity). Good for semantic equivalence when exact wording varies.OpenAI embeddings guide. Best for catching regressions on known-good test cases.

2

Human evals

Slow · Expensive · Ground truth

Annotators or domain experts rate outputs against a rubricrubricA scoring guide that defines criteria and score levels explicitly: for example, helpfulness rated 1–5, where each number has a written description of what qualifies. Removes rater ambiguity.Hamel Husain on eval rubrics. Required for subjective quality dimensions (tone, helpfulness, safety nuance) and to calibrate your automated evals.

3

Online monitoring

Real traffic · Lagging signal

Production signals: thumbs ratings, re-runs, task abandonment, downstream conversion. Slow feedback loop but reflects actual user behaviour rather than an artificially curated test distribution.

Four dimensions to evaluate

Hover over any metric for a plain-English explanation and a link to go deeper.

Functional

Does it do the task?

AccuracyAccuracyThe percentage of outputs that exactly match the expected answer. Simple and intuitive, but misleading on imbalanced tasks: a model that always guesses "no" scores 90% accuracy if 90% of answers are "no".Google ML crash courseRecallRecallOf all the correct answers that exist, what percentage did the model find? High recall means it misses few correct answers. Contrast with precision: did the answers it gave include any wrong ones?Google ML crash courseExact matchExact matchA binary check: the output either matches the expected string precisely or it does not. The most strict metric. Useful for factual Q&A or structured extraction where paraphrasing is unacceptable.Anthropic eval guideF1F1The harmonic mean of precision (did it avoid wrong answers?) and recall (did it find all right answers?). Balances both concerns in a single number. Standard for classification and extraction tasks.Google ML crash course
Safety

Does it avoid harmful outputs?

Refusal rateRefusal rateThe percentage of unsafe prompts the model correctly declines. Too low = safety failure. Too high = over-refusal frustrates legitimate users. Both directions need to be tracked.Anthropic eval guideToxicityToxicityPresence of harmful, offensive, or discriminatory content in outputs. Often measured with classifiers like the Perspective API (developed by Google/Jigsaw) which returns a toxicity score 0–1.Evaluating toxicity in LLMsPII leakagePII leakageWhether the model reveals personal information (names, addresses, credentials) from its training data or context window, a major compliance and trust risk, especially in enterprise products.OWASP LLM Top 10
Quality

Is the output good?

CoherenceCoherenceWhether the output reads as a logically connected whole, with no contradictions, topic drift, or non-sequiturs. Typically rated by humans or LLM-as-judge on a 1–5 scale.Coherence in LLM evaluation (arXiv)HelpfulnessHelpfulnessWhether the response actually addresses what the user needed, beyond what they literally asked. The hardest quality dimension to automate; LLM-as-judge is the current best proxy.Hamel Husain on evalsFaithfulnessFaithfulnessIn RAG systems specifically: whether every claim in the generated answer is supported by the retrieved documents. A faithfulness score of 1.0 means no hallucinated facts. RAGAS measures this automatically.RAGAS faithfulness metric
Business

Does it drive outcomes?

Task completionTask completionDid the user successfully accomplish their goal using the AI feature? Measured through explicit task flows (did they reach the success state?) or session analysis (did they leave after the AI responded, or retry?).Agent evaluation metrics — LinkedInRe-run rateRe-run rateThe percentage of users who repeat the same query or regenerate a response, a strong signal that the first output wasn't good enough. Rising re-run rate often predicts future churn.Hamel Husain on evals

In Practice

Four scenarios where evals change how PMs make decisions

1

Establishing a pre-launch baseline

Before shipping any AI feature, build a golden dataset of 50–100 representative inputs with expected outputs. Run automated evals to score your current implementation. This baseline is what you compare every future change against. Without it, you have no regression protection.

2

Making model migrations data-driven

When a new model version ships or you want to switch providers, run your eval suite against both before any traffic moves. Score on functional accuracy, latency p95, and cost per 1k tokens. Present the tradeoff matrix to stakeholders. Leave vibe checks behind.

3

Iterating on prompts without guesswork

Prompt changes that "feel better" in manual testing often regress on edge cases. For every prompt iteration, run your eval suite and compare delta scores. A prompt that improves the top 10% of outputs while breaking the bottom 20% is a net loss. Evals surface that immediately.

4

Closing the production feedback loop

Ship lightweight quality signals into production from day one: a thumbs rating, a "retry" button, or implicit signals like copy-paste rates. Triage low-rated outputs weekly into your eval dataset. Your test suite should grow to reflect real failure modes, including the ones you did not anticipate at launch.

Curated Resources

Videos

Key Takeaway

An AI feature without evals is a feature you cannot safely change. Start with a 50-item golden dataset before you ship, and treat expanding that dataset as a core product responsibility. Leave it to engineering and it will be deprioritised.