LearnQuestion bank

How would you A/B test a new model or prompt in a chat product? Which metrics are primary, secondary and guardrails?

Applied LLMTechnicalMedium

Theme reported publicly: PolyAI, Spotify

Answer it yourself first, out loud or on paper, then compare.

Answer

Model answer, written in a candidate's voice

In short

  • Offline gate first: fixed eval set, regression suite, safety/quality thresholds before live traffic.
  • Shadow then canary: replay/shadow traffic, small canary, ramp only if guardrails hold.
  • Randomise at the right unit (user/account or conversation), avoid per-message leakage, and handle novelty by separating new/first-session users.
  • Pre-register primary metric, duration and power; LLM metrics are noisy, so use longer windows and multiple signals rather than peeking.
  • Primary: user value such as resolution without escalation, retention and conversion.
  • Secondary: feedback/thumbs, regenerations, task completion, CSAT.
  • Guardrails: latency p95, cost per request, safety flags, complaints/escalations, refusal/hallucination-like failures.
  • Segment by language, plan, device, intent and new vs returning users; report heterogeneity.
  • Treat conversation length as ambiguous: more turns may mean more help or more frustration, so interpret it with resolution and feedback, not as a win.

In full

I would start offline: run the new model/prompt against a fixed eval set and regression suite, including safety and quality thresholds, and only ship if it beats or matches the baseline without regressions. Then I would shadow it on real traffic, then canary it to a small slice, ramping only if guardrails hold. I would randomise at the user/account level (or conversation level where that is the true unit of experience), not message-by-message, and I would pre-register the primary metric, duration and power; because LLM metrics are noisy, I would avoid peeking and use longer windows plus multiple signals rather than a single lucky day. The primary metric should be tied to user value, such as resolution without escalation, retention or conversion; secondary metrics include feedback/thumbs, regenerations, task completion and CSAT; guardrails include latency p95, cost per request, safety flags, complaints/escalations and refusal or hallucination-like failures. I would segment by language, plan, device, intent and new versus returning users, and I would interpret conversation length carefully: longer chats can mean better help or more frustration, so I would not call it a win unless resolution and feedback improve. If the primary signal is ambiguous, I would stop or narrow the rollout rather than declare success.

Checked against sources by an independent AI reviewer.

What a strong answer covers

  • Primary tied to user value (resolution without escalation, retention, conversion); secondary (feedback, regenerations); guardrails (latency p95, cost per request, safety flags, complaints)
  • Randomisation unit, novelty effects, duration, power; LLM metrics are noisy
  • Offline gate first; canary or shadow traffic
  • Segments (language, plan); ambiguous metrics such as conversation length interpreted carefully

Common mistakes

  • Thumbs-up rate as the only metric
  • stopping early on a noisy uplift