LearnThatStack Ace your next interview
AI Engineering

AI Evals & Observability.

Start free Change topic Change

Practise AI Evals & Observability one question at a time. Answer out loud or in writing, get graded, and see exactly what you missed.

Try one question

What are AI evals, and why are they often called the core discipline of AI engineering?

The answer

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.

Example · what grading looks like
What is a golden dataset in the context of AI evals?

“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 it

Nails 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

All 57 questions

Each on its own page

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.

6 questions

  1. What are AI evals, and why are they often called the core discipline of AI engineering?
  2. What are the main types of evals used for LLM applications?
  3. What is the difference between offline and online evaluation?
  4. Public benchmarks like MMLU and HumanEval show strong model scores. Why can't you rely on them to evaluate your product?
  5. What are unit-style assertion evals, and what are they good for? Pro
  6. 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.

6 questions

  1. What is a golden dataset in the context of AI evals?
  2. Walk me through how you would build a golden dataset from production data. Pro
  3. How do you think about coverage when curating an eval dataset? Pro
  4. Why should eval datasets be versioned, and what does good dataset versioning look like? Pro
  5. 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
  6. 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.

6 questions

  1. When is human review necessary in an eval process, given that it's slow and expensive? Pro
  2. How do thumbs up/down buttons work as an eval signal, and what are their limitations? Pro
  3. Beyond explicit thumbs ratings, what implicit user signals can feed your evals, and what are their pitfalls? Pro
  4. You can only afford human review on a small fraction of production traffic. How do you choose what to sample? Pro
  5. Walk me through a rigorous error analysis workflow for an LLM application. Pro
  6. 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.

9 questions

  1. Explain the LLM-as-judge pattern. Why is it so widely used?
  2. Compare pairwise (preference) evaluation with pointwise scoring. When would you use each? Pro
  3. What is rubric-based evaluation, and why does it usually beat asking for a single quality score? Pro
  4. What is position bias in LLM-as-judge setups, and how do you mitigate it? Pro
  5. Explain verbosity bias and self-preference bias in LLM judges, and how to reduce them. Pro
  6. What makes a good LLM-as-judge prompt? Walk me through the key design decisions. Pro
  7. How do you measure whether an LLM judge is actually any good? Pro
  8. How would you run LLM-as-judge evaluation on live production traffic? Pro
  9. 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.

6 questions

  1. What do faithfulness and relevance mean as RAG metrics, and how are they measured? Pro
  2. What metrics are used to evaluate AI agents, as opposed to single-shot LLM calls? Pro
  3. How do you evaluate a multi-turn conversation, where quality depends on the whole session rather than any single response? Pro
  4. How do you evaluate the retrieval component of a RAG system separately from generation, and why bother? Pro
  5. How do you evaluate an agent's trajectory, not just its final answer? Pro
  6. 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.

6 questions

  1. What does it mean to regression test a prompt before shipping a change? Pro
  2. What does CI for prompts look like in practice? Pro
  3. Describe an eval-driven development lifecycle for shipping an AI feature. Pro
  4. LLM outputs are non-deterministic. How do you get trustworthy eval results despite that? Pro
  5. A model you depend on is being deprecated and you must migrate to its successor. How do you manage the migration with evals? Pro
  6. 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.

7 questions

  1. What are traces and spans in LLM observability?
  2. How is LLM observability different from traditional application monitoring? Pro
  3. Compare the major LLM observability and eval platforms: LangSmith, Langfuse, Braintrust, and Arize Phoenix. Pro
  4. What are the OpenTelemetry GenAI semantic conventions, and why do they matter? Pro
  5. What should you log, redact, and retain when LLM traces contain sensitive user data? Pro
  6. How do you debug a user-reported bad answer you can't reproduce? Pro
  7. 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.

4 questions

  1. What basic operational metrics should you monitor for a production LLM feature? Pro
  2. What kinds of drift affect LLM applications, and how do you detect them? Pro
  3. How do you monitor latency and cost for LLM features in a way that actually supports decisions? Pro
  4. 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.

3 questions

  1. What are guardrail metrics, and what should you track about guardrails in production? Pro
  2. How would you red-team an LLM application, and how do adversarial safety evals differ from normal quality evals? Pro
  3. How do production guardrails differ from evals, and how do the two interact? Pro

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.

4 questions

  1. How would you A/B test an AI feature, and what is different compared to A/B testing normal product changes? Pro
  2. What roles do shadow deployment and canary releases play when shipping AI system changes? Pro
  3. What statistical pitfalls arise when A/B testing LLM features, and how do you handle them? Pro
  4. Offline eval scores improved but production quality fell. How do you debug it? Pro
Practice · Questions

All questions

Showing of 57
Beginner 13
01

What are AI evals, and why are they often called the core discipline of AI engineering?

Beginner ·

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:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

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.

Rewriting in plainer words…

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 ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

02

What are the main types of evals used for LLM applications?

Beginner ·

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:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

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.

Rewriting in plainer words…

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 ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

03

What is a golden dataset in the context of AI evals?

Beginner ·

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:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

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.

Rewriting in plainer words…

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 ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

04

Explain the LLM-as-judge pattern. Why is it so widely used?

Beginner ·

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:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

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.

Rewriting in plainer words…

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 ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

05

What is the difference between offline and online evaluation?

Beginner ·

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:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

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.

Rewriting in plainer words…

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 ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

06

Public benchmarks like MMLU and HumanEval show strong model scores. Why can't you rely on them to evaluate your product?

Beginner ·

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:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

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.

Rewriting in plainer words…

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 ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

07

What are traces and spans in LLM observability?

Beginner ·

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:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

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.

Rewriting in plainer words…

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 ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

08

What basic operational metrics should you monitor for a production LLM feature?

Part of Pro
09

What are unit-style assertion evals, and what are they good for?

Part of Pro
10

When is human review necessary in an eval process, given that it's slow and expensive?

Part of Pro
11

How do thumbs up/down buttons work as an eval signal, and what are their limitations?

Part of Pro
12

What does it mean to regression test a prompt before shipping a change?

Part of Pro Visual
13

How is LLM observability different from traditional application monitoring?

Part of Pro
Intermediate 22
14

Walk me through how you would build a golden dataset from production data.

Part of Pro
15

How do you think about coverage when curating an eval dataset?

Part of Pro
16

Why should eval datasets be versioned, and what does good dataset versioning look like?

Part of Pro
17

Compare pairwise (preference) evaluation with pointwise scoring. When would you use each?

Part of Pro
18

What is rubric-based evaluation, and why does it usually beat asking for a single quality score?

Part of Pro
19

What is position bias in LLM-as-judge setups, and how do you mitigate it?

Part of Pro Visual
20

Explain verbosity bias and self-preference bias in LLM judges, and how to reduce them.

Part of Pro
21

How would you A/B test an AI feature, and what is different compared to A/B testing normal product changes?

Part of Pro
22

What does CI for prompts look like in practice?

Part of Pro
23

What do faithfulness and relevance mean as RAG metrics, and how are they measured?

Part of Pro
24

What metrics are used to evaluate AI agents, as opposed to single-shot LLM calls?

Part of Pro
25

Compare the major LLM observability and eval platforms: LangSmith, Langfuse, Braintrust, and Arize Phoenix.

Part of Pro
26

What are the OpenTelemetry GenAI semantic conventions, and why do they matter?

Part of Pro
27

What kinds of drift affect LLM applications, and how do you detect them?

Part of Pro
28

What are guardrail metrics, and what should you track about guardrails in production?

Part of Pro
29

Beyond explicit thumbs ratings, what implicit user signals can feed your evals, and what are their pitfalls?

Part of Pro
30

You can only afford human review on a small fraction of production traffic. How do you choose what to sample?

Part of Pro
31

What should you log, redact, and retain when LLM traces contain sensitive user data?

Part of Pro
32

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?

Part of Pro
33

How would you red-team an LLM application, and how do adversarial safety evals differ from normal quality evals?

Part of Pro
34

How do you evaluate a multi-turn conversation, where quality depends on the whole session rather than any single response?

Part of Pro Visual
35

How do you debug a user-reported bad answer you can't reproduce?

Part of Pro
Expert 22
36

Describe an eval-driven development lifecycle for shipping an AI feature.

Part of Pro
37

LLM outputs are non-deterministic. How do you get trustworthy eval results despite that?

Part of Pro
38

Walk me through a rigorous error analysis workflow for an LLM application.

Part of Pro
39

What makes a good LLM-as-judge prompt? Walk me through the key design decisions.

Part of Pro
40

How do you measure whether an LLM judge is actually any good?

Part of Pro
41

How would you run LLM-as-judge evaluation on live production traffic?

Part of Pro
42

A model you depend on is being deprecated and you must migrate to its successor. How do you manage the migration with evals?

Part of Pro
43

How do you evaluate the retrieval component of a RAG system separately from generation, and why bother?

Part of Pro
44

How do you evaluate an agent's trajectory, not just its final answer?

Part of Pro Visual
45

How do you monitor latency and cost for LLM features in a way that actually supports decisions?

Part of Pro
46

Explain the data flywheel concept: turning production usage into continuously improving evals and product quality.

Part of Pro
47

What roles do shadow deployment and canary releases play when shipping AI system changes?

Part of Pro Visual
48

What statistical pitfalls arise when A/B testing LLM features, and how do you handle them?

Part of Pro
49

How do production guardrails differ from evals, and how do the two interact?

Part of Pro
50

Design the eval and observability architecture for a multi-step AI agent product operating at significant scale. What are the key components and tradeoffs?

Part of Pro
51

Explain how LMArena works, and critically assess its methodology and limitations as of 2026.

Part of Pro
52

Providers can change model behavior underneath you, even without an announced release. How do you detect and respond to silent model drift?

Part of Pro
53

How do you keep an LLM judge calibrated over time, not just at creation?

Part of Pro
54

How do you evaluate an AI feature when there is no ground truth, such as open-ended generation or creative assistance?

Part of Pro
55

How do you decide how much to invest in evals, and where each marginal dollar should go?

Part of Pro
56

How do you avoid overfitting to your eval set as you iterate on prompts and models?

Part of Pro
57

Offline eval scores improved but production quality fell. How do you debug it?

Part of Pro

No matches

Try a different filter or search term.

Know someone prepping for AI Evals & Observability? Send them this set.
Quick recap

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.

Get Pro · $10/mo
Pro · $10/mo

50 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.

Technologies
No technologies match “”.
Cross-cutting topics
No topics match “”.
By role
Stacks & frameworks

MEAN

MongoDB, Express, Angular, Node.js

MERN

MongoDB, Express, React, Node.js

LAMP

Linux, Apache, MySQL, PHP

Django

Python Full-Stack Development

Ruby on Rails

Convention over Configuration

Serverless on AWS

Serverless Architecture on AWS

Flutter Mobile

Flutter Cross-Platform Mobile Development

Spring Boot

Enterprise Java Development

.NET

Microsoft Ecosystem

Vue

Vue.js, Vite, TypeScript, Tailwind, Node.js

Go Backend

Golang, gRPC, PostgreSQL, Redis, RabbitMQ

FastAPI

Python, FastAPI, SQLAlchemy, PostgreSQL

React Native

React, TypeScript, Redux, Firebase

iOS Native

Swift, SwiftUI, UIKit, Firebase

Android Native

Java, Jetpack Compose, Firebase

DevOps / Platform

Docker, Kubernetes, Terraform, CI/CD

AI Engineer

LLMs, RAG, Agents, Evals

AI-Powered Developer

Claude Code, Copilot, Agentic Workflows

Core SWE Interview Prep

Data structures, algorithms, OS, concurrency, networking, git