LearnQuestion bank

You inherit a feature with a “72% quality score” and nobody knows why it fails. How do you find what to fix first?

Applied LLMTechnicalMedium

Theme reported publicly: PolyAI

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

Answer

Model answer, written in a candidate's voice

In short

  • Treat 72% as a symptom; sample traces stratified by outcome, segment, input type, model/version, and pipeline path.
  • Read traces, write free-text failure notes, cluster into a taxonomy, and count frequency.
  • Prioritise modes by frequency x severity x fixability, not by gut feel.
  • Inspect retrieval, tools, prompts, context, guardrails, and the evaluator itself, not just the final answer.
  • Fix top modes, add targeted evaluators, measure per-mode change, and guard against regressions.

In full

I would not start by rewriting the prompt; I would treat the 72% as a symptom and sample traces stratified by pass/fail, user segment, input type, model/version, and pipeline path, then read them and write free-text notes on what actually went wrong. From those notes I would cluster failures into a taxonomy—retrieval miss, tool error, bad context, instruction/prompt failure, formatting, hallucination, timeout, or evaluator mismatch—and count how often each mode appears. I would prioritise by frequency x severity x fixability, where severity is user/business impact and fixability is my confidence that a targeted change can move the mode, then inspect the whole pipeline rather than only the final answer. For the top modes I would build targeted evaluators or assertions, fix one mode at a time, measure per-mode change plus overall score, and keep a regression set and monitoring so a fix in one mode does not quietly break another.

Checked against sources by an independent AI reviewer.

What a strong answer covers

  • Samples traces (stratified), reads them, writes free-text notes on failures, clusters them into a taxonomy, counts
  • Prioritises by frequency × severity × fixability; builds targeted evaluators for top modes
  • Looks at the whole pipeline (retrieval, tools, prompts), not just the final answer
  • Fix → measure per-mode change → guard against regressions

Common mistakes

  • Prompt tweaks driven by a few anecdotes
  • trusting the aggregate score without reading data