PrepGenAICerts

Diagnosing Quality Regressions: A Decision Table

Core

Diagnose production system issues by localizing the failure layer · Difficulty 3/5

0%
diagnosticshallucinationmodel-mismatchretrievalroot-cause

Explanation

When quality drops, localize the cause before fixing -- patching the wrong layer just moves the symptom instead of resolving it.

Symptom -> Cause -> First Move

SymptomLikely causeFirst move
Confident but wrong after a document refresh (model/latency unchanged)Retrieval/indexing returning stale or irrelevant chunksInspect the retrieval step and re-index
Well-formed output that's factually inventedHallucinationGround with retrieval, constrain claims, add citations
Quality regressed right after a model version changeModel mismatchRe-run evals; pin/roll back the version
Output ignores or misreads the instructionPrompt failureClarify instruction, fix placement, add few-shot
Truncated outputstop_reason: max_tokensRaise max_tokens (not a prompt or model problem)
Quality falls late in a long sessionContext bloat/driftPrune, compact, or isolate context

Reading the Table

The table works by elimination: hold constant what didn't change (model, latency, version) and vary what did (the data, the session length) to isolate the layer. A document refresh with model and latency unchanged points at retrieval, not the model -- a broken re-index or mismatched embeddings is the likely culprit.

A well-formed JSON output that's factually invented is a hallucination, not a transport error, truncation, or model-mismatch regression -- grounding and constraint are the fixes, not a version rollback.

Common exam traps

  • Blaming "the model got worse" for what is actually a retrieval or context problem. If latency and version are unchanged but the underlying data changed, suspect retrieval; if the version just changed, suspect model mismatch and re-run evals to confirm before rolling back.

Key Takeaways

  • Localize the failure layer before fixing -- don't patch the wrong layer
  • Confident-but-wrong after a document refresh (model/latency unchanged) points to retrieval/indexing
  • Well-formed but factually invented output is a hallucination, fixed with grounding/constraints/citations
  • A regression right after a model-version change is model mismatch -- re-run evals, pin/roll back
  • Truncated output with stop_reason: max_tokens is a token-limit issue, not a prompt or model problem
  • Quality falling late in a long session points to context bloat/drift

Glossary Terms

Related Concepts

PrepGenAICerts.com is an independent third-party exam-prep platform for the Claude Certified Architect (CCA-F) certification. We are not affiliated with, endorsed by, or acting on behalf of Anthropic PBC.

Note: New premium upgrades are temporarily paused while we resolve an issue with our payment provider. Existing premium members retain full access.