Practise AI Evals & Observability one question at a time. Answer out loud or in writing, get graded, and see exactly what you missed.
What are AI evals, and why are they often called the core discipline of AI engineering?
An eval, short for evaluation, is a repeatable test that runs your AI system over a fixed set of inputs and scores the outputs. It is measurement, not a one-off demo.
case: "refund request, order already shipped"
input: user message + order state
expect: mentions the 30-day window, does not promise a refund
score: pass / fail
It is called the core discipline because the model itself is bought, not built. Everyone can call the same API. What you own is your definition of "good" for your task, plus proof that a change helped.
Without evals, every prompt or model change is a guess judged by feel. With them, shipping becomes a loop: measure, change one thing, measure again.
Evals also fail differently from normal tests. There is no compiler error. A bad output looks perfectly confident, so someone must define correctness on purpose.
Missed:
“So a golden dataset is basically the answer key for your evals. It's a set of real examples, maybe a couple of hundred, where a person has decided what a good output looks like. Say I'm building a bot that answers HR policy questions. Each example is an employee question, the policy snippet it should draw on, and the answer we expect back. Whenever I change the prompt or try a new model, I run the whole set and compare the score with the last run. The important bit is that the labels come from people, not from the model, otherwise you're just grading the model against itself. And I wouldn't quietly edit it between runs, or last week's number and this week's number aren't measuring the same thing.”
Knew itNails the definition: human-labeled reference set with input, context and expected output, scored consistently across runs, never edited quietly. Would be stronger noting stale labels must be re-checked as a new version when product rules change.
Missed: Doesn't mention that when product rules change, labels should be re-checked and versioned rather than left stale or never touched.
Get your own answers graded
Sign up free. Your account comes with 50 credits for grading, and it remembers what you missed.
What it covers
- Eval fundamentals and benchmarks
- Golden datasets and coverage
- Human review and feedback loops
- LLM-as-judge design and calibration
- Evaluating RAG, agents and open-ended tasks
- Regression testing and eval-driven development
- Tracing and observability
- Production metrics and drift
- Guardrails and red-teaming
- Online experiments and rollouts
All 57 questions
Eval fundamentals and benchmarks
What evals are, the main grading types, offline versus online evaluation, and why public benchmarks and leaderboards don't tell you about your product.
- What are AI evals, and why are they often called the core discipline of AI engineering?
- What are the main types of evals used for LLM applications?
- What is the difference between offline and online evaluation?
- Public benchmarks like MMLU and HumanEval show strong model scores. Why can't you rely on them to evaluate your product?
- What are unit-style assertion evals, and what are they good for? Pro
- Explain how LMArena works, and critically assess its methodology and limitations as of 2026. Pro
Golden datasets and coverage
Building, bootstrapping, versioning and splitting eval datasets so every important slice is covered and scores stay comparable and honest.
- What is a golden dataset in the context of AI evals?
- Walk me through how you would build a golden dataset from production data. Pro
- How do you think about coverage when curating an eval dataset? Pro
- Why should eval datasets be versioned, and what does good dataset versioning look like? Pro
- You are launching a new AI feature with no production traffic. How do you bootstrap an eval set, and what are the risks of synthetic test data? Pro
- How do you avoid overfitting to your eval set as you iterate on prompts and models? Pro
Human review and feedback loops
Where human judgment is worth paying for, error analysis on real traces, sampling for review, and turning explicit and implicit user signals into evals.
- When is human review necessary in an eval process, given that it's slow and expensive? Pro
- How do thumbs up/down buttons work as an eval signal, and what are their limitations? Pro
- Beyond explicit thumbs ratings, what implicit user signals can feed your evals, and what are their pitfalls? Pro
- You can only afford human review on a small fraction of production traffic. How do you choose what to sample? Pro
- Walk me through a rigorous error analysis workflow for an LLM application. Pro
- Explain the data flywheel concept: turning production usage into continuously improving evals and product quality. Pro
LLM-as-judge design and calibration
Designing judge prompts and rubrics, pairwise versus pointwise scoring, judge biases, validating judges against humans and running them on live traffic.
- Explain the LLM-as-judge pattern. Why is it so widely used?
- Compare pairwise (preference) evaluation with pointwise scoring. When would you use each? Pro
- What is rubric-based evaluation, and why does it usually beat asking for a single quality score? Pro
- What is position bias in LLM-as-judge setups, and how do you mitigate it? Pro
- Explain verbosity bias and self-preference bias in LLM judges, and how to reduce them. Pro
- What makes a good LLM-as-judge prompt? Walk me through the key design decisions. Pro
- How do you measure whether an LLM judge is actually any good? Pro
- How would you run LLM-as-judge evaluation on live production traffic? Pro
- How do you keep an LLM judge calibrated over time, not just at creation? Pro
Evaluating RAG, agents and open-ended tasks
Metrics for retrieval and generation in RAG, agent task success and trajectories, multi-turn sessions, and outputs with no ground truth.
- What do faithfulness and relevance mean as RAG metrics, and how are they measured? Pro
- What metrics are used to evaluate AI agents, as opposed to single-shot LLM calls? Pro
- How do you evaluate a multi-turn conversation, where quality depends on the whole session rather than any single response? Pro
- How do you evaluate the retrieval component of a RAG system separately from generation, and why bother? Pro
- How do you evaluate an agent's trajectory, not just its final answer? Pro
- How do you evaluate an AI feature when there is no ground truth, such as open-ended generation or creative assistance? Pro
Regression testing and eval-driven development
Regression testing prompts, CI gates on evals, handling non-determinism, model migrations, and deciding where eval investment pays off.
- What does it mean to regression test a prompt before shipping a change? Pro
- What does CI for prompts look like in practice? Pro
- Describe an eval-driven development lifecycle for shipping an AI feature. Pro
- LLM outputs are non-deterministic. How do you get trustworthy eval results despite that? Pro
- A model you depend on is being deprecated and you must migrate to its successor. How do you manage the migration with evals? Pro
- How do you decide how much to invest in evals, and where each marginal dollar should go? Pro
Tracing and observability
Traces and spans, how LLM observability differs from classic monitoring, OpenTelemetry GenAI conventions, platforms, sensitive data, trace-based debugging and the end-to-end architecture at scale.
- What are traces and spans in LLM observability?
- How is LLM observability different from traditional application monitoring? Pro
- Compare the major LLM observability and eval platforms: LangSmith, Langfuse, Braintrust, and Arize Phoenix. Pro
- What are the OpenTelemetry GenAI semantic conventions, and why do they matter? Pro
- What should you log, redact, and retain when LLM traces contain sensitive user data? Pro
- How do you debug a user-reported bad answer you can't reproduce? Pro
- Design the eval and observability architecture for a multi-step AI agent product operating at significant scale. What are the key components and tradeoffs? Pro
Production metrics and drift
Operational, latency and cost metrics for LLM features, and detecting input, output and silent provider-side model drift.
- What basic operational metrics should you monitor for a production LLM feature? Pro
- What kinds of drift affect LLM applications, and how do you detect them? Pro
- How do you monitor latency and cost for LLM features in a way that actually supports decisions? Pro
- Providers can change model behavior underneath you, even without an announced release. How do you detect and respond to silent model drift? Pro
Guardrails and red-teaming
Measuring guardrails in production, how inline guardrails differ from and feed evals, and adversarial safety testing of the whole application.
Online experiments and rollouts
A/B testing AI features and its statistical pitfalls, shadow and canary releases, and debugging gaps between offline scores and production quality.
- How would you A/B test an AI feature, and what is different compared to A/B testing normal product changes? Pro
- What roles do shadow deployment and canary releases play when shipping AI system changes? Pro
- What statistical pitfalls arise when A/B testing LLM features, and how do you handle them? Pro
- Offline eval scores improved but production quality fell. How do you debug it? Pro
All questions
Showing of 57What are AI evals, and why are they often called the core discipline of AI engineering?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
An eval, short for evaluation, is a repeatable test that runs your AI system over a fixed set of inputs and scores the outputs. It is measurement, not a one-off demo.
case: "refund request, order already shipped"
input: user message + order state
expect: mentions the 30-day window, does not promise a refund
score: pass / fail
It is called the core discipline because the model itself is bought, not built. Everyone can call the same API. What you own is your definition of "good" for your task, plus proof that a change helped.
Without evals, every prompt or model change is a guess judged by feel. With them, shipping becomes a loop: measure, change one thing, measure again.
Evals also fail differently from normal tests. There is no compiler error. A bad output looks perfectly confident, so someone must define correctness on purpose.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What are the main types of evals used for LLM applications?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
Evals are usually grouped by how the output gets graded, and four types cover most LLM applications. Code-based checks and reference-based scores are cheap and mechanical. LLM-as-judge and human review cost more, and they grade what fixed rules cannot express.
| Type | How it grades | Best for | Cost |
|---|---|---|---|
| Code-based checks | fixed rules: JSON schema, regex, exact match, does it compile | format, tool arguments, banned strings | free, instant |
| Reference-based scores | compares output to a known correct answer by exact match, F1 or embedding similarity | classification, extraction, short factual answers | cheap |
| LLM-as-judge | a model scores the output against a rubric | open-ended prose, tone, faithfulness | cents per row |
| Human review | people label a sample by hand | ambiguous cases, ground truth | slow, expensive |
Run them cheapest first. Deterministic checks run on every commit and catch most breakage.
Word-overlap scores like BLEU or ROUGE are weak for open-ended answers, since many correct wordings score low. Human labels are the reference that shows whether the cheaper graders agree with people.
Real suites mix all four types over the same dataset.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What is a golden dataset in the context of AI evals?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
A golden dataset is a small, human-checked set of test cases with known-good answers. It is the fixed reference you score every prompt, model, or retrieval change against.
Each row pairs an input with an expected output or grading criteria, plus any context the system needs.
{"id": "ret-014", "input": "Can I return shoes after 40 days?", "context": ["policy: 30-day returns"], "expected": "No, the window is 30 days.", "must_include": ["30"]}
{"id": "ret-015", "input": "my order never showed up", "expected_tool": "lookup_shipment"}
"Golden" means the labels are ground truth written or approved by people, not model output.
Two things matter most. Keep it frozen, or scores stop being comparable run to run. When the product rules change, re-check the labels as a new version, since a stale label fails answers that are now correct.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
Explain the LLM-as-judge pattern. Why is it so widely used?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
LLM-as-judge means asking one model to grade another model's output against written criteria. The judge returns a verdict or score, plus a short reason.
You are grading a support reply.
Criterion: does the reply answer the question using only the given context?
Return JSON: {"verdict": "pass" | "fail", "reason": "<one sentence>"}
It spread because most useful outputs are free text: summaries, answers, tone. Exact-match checks cannot score them. Human review costs money and days. A judge is cheap, returns in seconds, and can run on every commit.
But the judge is a model too. Its score is an estimate, so check it against human labels on a sample before you trust it. It also cannot catch a wrong fact that the criteria never mention.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What is the difference between offline and online evaluation?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
Offline evaluation runs your system against a fixed dataset before you ship. Online evaluation measures the live system on real user traffic after you ship.
Offline gives a fast, repeatable signal with known expected answers, so you can compare two prompts fairly. But a fixed dataset never covers everything real users ask.
Online sees the real mix of user inputs, but usually has no ground truth. You lean on judges, user signals, and product outcomes instead.
| Offline eval | Online eval | |
|---|---|---|
| When | before release | after release, continuously |
| Data | curated, fixed set | live production traffic |
| Ground truth | usually available | usually missing |
| Blocks a deploy | yes | no, it alerts or triggers rollback |
They form a loop, not a choice. Ship on offline results, watch online, then feed the failures you find back into the offline set.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
Public benchmarks like MMLU and HumanEval show strong model scores. Why can't you rely on them to evaluate your product?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
Public benchmarks score the model. Your product is the model plus prompt, retrieval and tools. It also parses output and runs on your users' real inputs. A high score does not transfer.
Three concrete gaps:
- Distribution mismatch. MMLU is multiple-choice academic questions across 57 subjects. HumanEval is 164 small, self-contained Python functions. Neither looks like your support tickets or your codebase.
- Contamination and saturation. Benchmark items leak into training data, so scores flatter the model. Strong models now cluster near the ceiling, and the gaps between them sit inside the noise.
- Wrong target. They say nothing about format compliance, tone or refusal behavior. Nor do they measure latency or cost per request.
Use them to shortlist two or three candidates. Then decide with your own eval set on your own traffic.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What are traces and spans in LLM observability?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
A trace is the full record of one request through your app, start to finish. A span is one timed step inside that trace, such as a single LLM call or a retrieval query.
Spans nest. Each one has a parent, so a trace forms a tree with one root span. Every span carries a name, start and end times, and a status. Its attributes hold the model, the prompt and response, and token counts with cost.
trace: chat_request (2.4s) user=u_912 session=s_44
├── span: retrieve_docs (310ms) k=5, index=faq_v3
├── span: llm_call (1.9s) model=..., in=1200 tok, out=180 tok
└── span: guardrail_check (60ms) verdict=pass
This is what makes debugging possible. You see which step was slow, and what the model actually received. You can also attach eval scores to one span or to the whole trace.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What basic operational metrics should you monitor for a production LLM feature?
What are unit-style assertion evals, and what are they good for?
When is human review necessary in an eval process, given that it's slow and expensive?
How do thumbs up/down buttons work as an eval signal, and what are their limitations?
What does it mean to regression test a prompt before shipping a change?
How is LLM observability different from traditional application monitoring?
Walk me through how you would build a golden dataset from production data.
How do you think about coverage when curating an eval dataset?
Why should eval datasets be versioned, and what does good dataset versioning look like?
Compare pairwise (preference) evaluation with pointwise scoring. When would you use each?
What is rubric-based evaluation, and why does it usually beat asking for a single quality score?
What is position bias in LLM-as-judge setups, and how do you mitigate it?
Explain verbosity bias and self-preference bias in LLM judges, and how to reduce them.
How would you A/B test an AI feature, and what is different compared to A/B testing normal product changes?
What does CI for prompts look like in practice?
What do faithfulness and relevance mean as RAG metrics, and how are they measured?
What metrics are used to evaluate AI agents, as opposed to single-shot LLM calls?
Compare the major LLM observability and eval platforms: LangSmith, Langfuse, Braintrust, and Arize Phoenix.
What are the OpenTelemetry GenAI semantic conventions, and why do they matter?
What kinds of drift affect LLM applications, and how do you detect them?
What are guardrail metrics, and what should you track about guardrails in production?
Beyond explicit thumbs ratings, what implicit user signals can feed your evals, and what are their pitfalls?
You can only afford human review on a small fraction of production traffic. How do you choose what to sample?
What should you log, redact, and retain when LLM traces contain sensitive user data?
You are launching a new AI feature with no production traffic. How do you bootstrap an eval set, and what are the risks of synthetic test data?
How would you red-team an LLM application, and how do adversarial safety evals differ from normal quality evals?
How do you evaluate a multi-turn conversation, where quality depends on the whole session rather than any single response?
How do you debug a user-reported bad answer you can't reproduce?
Describe an eval-driven development lifecycle for shipping an AI feature.
LLM outputs are non-deterministic. How do you get trustworthy eval results despite that?
Walk me through a rigorous error analysis workflow for an LLM application.
What makes a good LLM-as-judge prompt? Walk me through the key design decisions.
How do you measure whether an LLM judge is actually any good?
How would you run LLM-as-judge evaluation on live production traffic?
A model you depend on is being deprecated and you must migrate to its successor. How do you manage the migration with evals?
How do you evaluate the retrieval component of a RAG system separately from generation, and why bother?
How do you evaluate an agent's trajectory, not just its final answer?
How do you monitor latency and cost for LLM features in a way that actually supports decisions?
Explain the data flywheel concept: turning production usage into continuously improving evals and product quality.
What roles do shadow deployment and canary releases play when shipping AI system changes?
What statistical pitfalls arise when A/B testing LLM features, and how do you handle them?
How do production guardrails differ from evals, and how do the two interact?
Design the eval and observability architecture for a multi-step AI agent product operating at significant scale. What are the key components and tradeoffs?
Explain how LMArena works, and critically assess its methodology and limitations as of 2026.
Providers can change model behavior underneath you, even without an announced release. How do you detect and respond to silent model drift?
How do you keep an LLM judge calibrated over time, not just at creation?
How do you evaluate an AI feature when there is no ground truth, such as open-ended generation or creative assistance?
How do you decide how much to invest in evals, and where each marginal dollar should go?
How do you avoid overfitting to your eval set as you iterate on prompts and models?
Offline eval scores improved but production quality fell. How do you debug it?
This answer is part of Pro.
The full written answer, with the trade-offs and follow-ups an interviewer will probe.
No matches
Try a different filter or search term.
AI Evals & Observability in pictures.
A quick recap of AI Evals & Observability in 43 short animated pictures, one idea at a time. About 11 min to get the whole topic back in your head before you walk in. Pause any picture, slow it down, or step through it.
Pro The first chapter is free to play. The other 38 pictures come with Pro.
AI Evals & Observability cheatsheet
- Evals & graders01
- Eval datasets02
- LLM as judge03
- Traces & monitoring04
- Test before you ship05
- Roll out & A/B test06
- Online evals & feedback07
- Drift & debugging08
- Guardrails & red-teaming09
- RAG, agents & chat10
- The model11
- + 5 more inside
This picture is part of Pro. The first chapter is free to play; the other 38 pictures come with Pro.
Get Pro · $10/mo Already Pro? Sign in50 of 57 AI Evals & Observability answers are in Pro.
Full answers, code samples, and AI explanations that go simpler or deeper. Cancel anytime.
- Full answers + code
- AI explanations, simpler or deeper
- 1,000 AI credits / month
- Cancel anytime
Change topic
Pick a different technology or stack. Your current topic stays put until you choose a new one.
MEAN
MongoDB, Express, Angular, Node.jsMERN
MongoDB, Express, React, Node.jsDjango
Python Full-Stack DevelopmentRuby on Rails
Convention over ConfigurationServerless on AWS
Serverless Architecture on AWSInterviewers also test these - they're common to every stack, whichever one you picked above.
Flutter Mobile
Flutter Cross-Platform Mobile DevelopmentInterviewers also test these - they're common to every stack, whichever one you picked above.
Spring Boot
Enterprise Java Development.NET
Microsoft EcosystemVue
Vue.js, Vite, TypeScript, Tailwind, Node.jsGo Backend
Golang, gRPC, PostgreSQL, Redis, RabbitMQInterviewers also test these - they're common to every stack, whichever one you picked above.
FastAPI
Python, FastAPI, SQLAlchemy, PostgreSQLReact Native
React, TypeScript, Redux, FirebaseiOS Native
Swift, SwiftUI, UIKit, FirebaseAndroid Native
Java, Jetpack Compose, FirebaseDevOps / Platform
Docker, Kubernetes, Terraform, CI/CDInterviewers also test these - they're common to every stack, whichever one you picked above.
AI Engineer
LLMs, RAG, Agents, EvalsAI-Powered Developer
Claude Code, Copilot, Agentic WorkflowsCore SWE Interview Prep
Data structures, algorithms, OS, concurrency, networking, gitInterviewers also test these - they're common to every stack, whichever one you picked above.
Interviewers also test these - they're common to every stack, whichever one you picked above.