All questions
Showing of 55What 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 -
AI evals are systematic, repeatable measurements of an AI system's quality. Given a set of inputs, how well does the system produce acceptable outputs according to defined criteria? They matter disproportionately in AI engineering because LLM-based systems fail differently from traditional software.
There is no compiler error for a hallucination or stack trace for a subtly wrong answer. Model behavior also varies with prompt wording, model version, and retrieved context.
Without evals, teams rely on "vibe checks": trying a few inputs by hand and shipping when things look fine. That approach cannot detect regressions, cannot compare two prompts objectively, and collapses as the product grows.
With evals, every change (prompt edit, model swap, retrieval tweak) can be scored against a stable dataset before shipping, so iteration becomes fast and safe.
In practice, the quality of a team's eval suite is one of the strongest predictors of the quality of the product itself. Models are increasingly interchangeable; a well-curated eval set encoding what "good" means for your users is a durable, proprietary asset that competitors cannot copy.
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 -
Use several eval types, from cheap code checks to careful human review:
- Unit-style assertions: deterministic code checks on outputs. Examples include "response is valid JSON," "contains the refund policy link," "under 200 tokens," and "no personal data regex matches."
- Golden dataset evals: run the system on curated inputs with known reference outputs or labels. Compare via exact match, string similarity, embedding similarity, or a grader.
- LLM-as-judge: a strong model grades outputs against criteria, either standalone (pointwise) or against a reference.
- Pairwise or preference evals: a judge or human picks the better of two outputs (A vs B). Comparing is easier and more reliable than assigning absolute scores.
- Rubric-based evals: scoring against explicit written criteria, one dimension at a time (accuracy, completeness, tone), rather than a single fuzzy "quality" score.
- Human review: expert annotators label outputs. The gold standard for correctness, used to bootstrap datasets and calibrate automated judges.
Mature systems layer all of these: assertions everywhere, judges on samples, humans on a small calibrated slice.
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 curated set of test inputs paired with expected outputs, reference answers, or human-verified scoring criteria. It provides a stable basis for comparing system versions.
Good golden datasets share a few properties. They are representative: drawn largely from real production traffic rather than invented examples, so scores predict real-world behavior. They are diverse: covering common intents, edge cases, adversarial inputs, and known past failures.
They are trusted: every label has been reviewed by someone who understands the domain. A noisy golden set produces noisy scores that teams learn to ignore.
Version every change with a clear reason. This separates real system movement from a score change caused by different test data.
Teams typically start small, around 20 to 100 examples, and grow the set continuously by promoting interesting production failures into it. A small trustworthy set beats a large noisy one.
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 using a capable language model to evaluate the outputs of an AI system, in place of (or alongside) human reviewers. The judge receives the input, the system's output, and optionally a reference answer and a rubric. It returns a verdict: pass/fail, a score, or a preference between two candidates.
It offers a practical middle ground. Human review is valuable but slow, while code assertions cannot judge qualities such as faithfulness, helpfulness, or tone. A model judge can score a larger sample at lower cost, though the exact speed and price depend on the chosen model.
The critical caveat: a judge is itself a model with biases (position, verbosity, self-preference) and error rates. It must be validated against human labels before its scores are trusted. An uncalibrated judge is just an opinion generator.
Treat the judge prompt as production code: version it, test it, and re-check its agreement with humans over time.
Judge input: user question + system answer + rubric
Judge output: {"verdict": "fail", "reason": "cites a price not present in context"}
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 happens before deployment, against a fixed dataset in a controlled environment. You run the candidate system (new prompt, new model, new retrieval config) over a golden set. Score the outputs with assertions, judges, or humans, and compare against a baseline.
Offline evals are reproducible, cheap to repeat, and safe: no user sees a bad output.
Their weakness is coverage; a fixed dataset never fully matches the live input distribution.
Online evaluation happens in production on real traffic. It includes A/B tests comparing variants on business and quality metrics, plus LLM judges scoring sampled live traces asynchronously. It also covers guardrail metrics, user feedback (thumbs, regenerations), and drift monitoring.
Online signals reflect reality, including inputs you never anticipated, but they are noisy, slower to read, and mistakes have user-facing cost.
The two are complementary and form a loop. Offline evals gate releases, while online evaluation finds gaps in that suite. Label useful production failures and add them to the offline set for future releases.
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 measure general model capability under standardized conditions; your product needs task-specific evaluation under your conditions. The gap shows up in several ways:
- Distribution mismatch: MMLU (Massive Multitask Language Understanding) is multiple-choice academic knowledge; HumanEval is small self-contained Python functions;
SWE-benchis GitHub issue fixing. None resembles your support bot answering questions about your refund policy with your retrieval pipeline and system prompt. - Contamination: benchmark questions leak into training data, inflating scores in ways that say nothing about generalization to your inputs.
- Saturation: strong models can cluster near a benchmark's ceiling, so small score differences no longer separate them well.
- System vs model: benchmarks test the raw model; your quality depends on the whole system: prompts, retrieval, tools, guardrails, and how they interact.
- Metric mismatch: a model can top LMArena on style preference while being worse at your domain's factual accuracy.
Benchmarks are useful for a first shortlist of candidate models. The decision of which model actually ships should come from running your own eval suite against each candidate.
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 complete, structured record of one request's journey through your AI application. It captures the user input, every intermediate step, and the final output, with timing. A span is a single operation within that trace: one LLM call, one retrieval query, one tool execution, one guardrail check.
Spans nest, so a "handle_question" root span might contain a "retrieve_docs" span and two "llm_call" spans.
Each span carries attributes: model name, prompt and completion (or references to them), input/output token counts, cost, latency, and error status. Spans also carry custom metadata like user tier or feature flag. This structure makes LLM apps debuggable.
When a user reports a bad answer, the trace shows the retrieved documents and final prompt. It also shows what the model returned at each step.
Traces are also the raw material for everything else in the eval stack. Judges score traces, datasets are curated from traces, and cost/latency dashboards aggregate span attributes. Tools like LangSmith, Langfuse, Braintrust, and Arize Phoenix are all built around this trace/span model, increasingly using OpenTelemetry conventions.
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?
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 do you calibrate an LLM judge against human judgment?
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 do you do about sensitive user data in LLM traces - what should you log, redact, and retain?
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?
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?
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 cheatsheet
- The 30-second mental model01
- Eval type catalog02
- Golden dataset playbook03
- LLM-as-judge design guide04
- Offline vs online eval05
- A/B testing in production06
- CI and regression workflow07
- Public benchmarks (and why they do not transfer)08
- RAG metrics09
- Agent metrics10
- Tracing and observability stack11
- Token, cost, and latency monitoring12
- + 6 more inside
- + 12 more inside
48 of 55 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.