Select the metrics that actually measure context quality, not just generation quality
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Context precision, context recall, faithfulness, and gold chunk position localize bugs to the context layer. BLEU and latency say nothing about whether retrieval is broken.
Imagine the cook (the model) made a bad meal. You can taste the meal and say 'it's bad', but that does not tell you whether the cook is bad, or the ingredients were wrong, or the right ingredients were sitting on a shelf and the cook never reached for them. Context quality metrics check the ingredients on the counter. Did the right ones make it from the pantry? Did the cook actually use what was on the counter, or invent things? Was the key ingredient at the front of the counter or hidden behind everything else? End taste alone never answers those questions, and that is why pure output scores miss the bug.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
Context layer bugs need context layer metrics. The RAG triad is precision (what fraction of context is relevant), recall (what fraction of needed facts is present), and faithfulness (what fraction of answer claims are grounded). Add gold chunk position to catch lost in the middle effects. BLEU is a surface text overlap score that misses retrieval bugs; TTFT is a latency metric, not a quality one. Each triad regression maps to a specific failing component, which is why these metrics localize bugs that output metrics cannot.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Treating answer correctness as the only signal. A correct answer with poor retrieval is fragile and you will not see the breakage until the question shifts.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.