How do you evaluate an LLM feature online? Design the A/B test and name the implicit feedback signals you'd use.
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
Offline evals predict; online tests confirm on real users. Design:
- Randomisation unit: user (or session) level, not request level - LLM experiences are stateful, and request-level splits contaminate each user's experience and violate independence for session-level metrics.
- Primary metric: the closest honest proxy for task success - resolution rate without human escalation (support bots), acceptance rate of suggestions (code assistants), task-completion rate (agents). Not "thumbs up rate" alone - too sparse.
- Guardrail metrics: p95 latency, cost per session, safety-flag rate, escalation rate - the experiment auto-fails if these regress, whatever the primary metric does.
- Power calculation before launch: LLM quality deltas are often small (2-5% relative), so compute required sample size honestly; underpowered A/B tests generate noise dressed as decisions. Watch for novelty effects in week one and segment-level heterogeneity (a win on English traffic can hide a loss on Japanese).
Full worked answer with diagram
Offline evals predict; online tests confirm on real users. Design:
- Randomisation unit: user (or session) level, not request level - LLM experiences are stateful, and request-level splits contaminate each user's experience and violate independence for session-level metrics.
- Primary metric: the closest honest proxy for task success - resolution rate without human escalation (support bots), acceptance rate of suggestions (code assistants), task-completion rate (agents). Not "thumbs up rate" alone - too sparse.
- Guardrail metrics: p95 latency, cost per session, safety-flag rate, escalation rate - the experiment auto-fails if these regress, whatever the primary metric does.
- Power calculation before launch: LLM quality deltas are often small (2-5% relative), so compute required sample size honestly; underpowered A/B tests generate noise dressed as decisions. Watch for novelty effects in week one and segment-level heterogeneity (a win on English traffic can hide a loss on Japanese).
Implicit signals - critical because explicit feedback is sparse (thumbs come from a low-single-digit percent of sessions) and biased (angry users click more):
- Regeneration / retry rate - the user rejected the answer; one of the strongest negative signals.
- Copy-to-clipboard, code acceptance, edit distance of accepted output before use - high edit distance means the output needed rework.
- Follow-up reformulations ("no, I meant...") - detectable with a cheap classifier; indicates failure to satisfy.
- Abandonment mid-response or immediately after; session escalation to a human channel.
- Task-level outcomes where instrumentable: ticket reopened, PR merged, booking completed.
For retrieval/ranking changes specifically, mention interleaving: mix results from both rankers into one list and see which side earns the clicks. It's within-user, so it reaches significance with an order of magnitude less traffic than A/B - the standard trick from web search, directly applicable to RAG retrieval.
Close the loop: log arm assignment into traces so offline error analysis can compare transcripts across arms, and track offline-eval-score vs online-outcome correlation - if they diverge, your eval set has drifted from production.
Worth sketching. The guardrail branch sitting downstream of the primary metric is the part interviewers listen for.
flowchart TD
U["Randomise by user,<br/>not by request"] --> A["Arm A: incumbent"]
U --> B["Arm B: candidate"]
A --> M["Primary: task resolution<br/>Implicit: regeneration, edit distance"]
B --> M
M --> D{"Guardrails held?<br/>p95, cost, escalation"}
D -->|"no"| K["Experiment fails, whatever<br/>the primary metric says"]
D -->|"yes"| S["Ship if the test was powered"]
What a good answer covers
- Offline evals predict; online tests confirm on real users
- Randomisation unit: user (or session) level, not request level - LLM experiences are stateful, and…
- Primary metric: the closest honest proxy for task success - resolution rate without human escalation…
- Guardrail metrics: p95 latency, cost per session, safety-flag rate, escalation rate - the experiment…
- Power calculation before launch
Key terms: Randomisation unit · Primary metric · Guardrail metrics · Power calculation before launch · Implicit signals · Regeneration / retry rate · Abandonment · session escalation · Task-level outcomes · interleaving
In the glossary: Guardrail metric · Interleaving · RAG · Error analysis · Eval set · Guardrails
Interviewer follow-ups to expect
Thumbs-up rate went up but escalation rate also went up - construct a story that explains both. When would you ship on offline evals alone, without an A/B?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep