Zenaique

Select the metrics that actually measure context quality, not just generation quality

Multi-select·Medium·4.0 · 0·~1 min·Asked atNetflixPhonepeSynthesia
Attempt it
TL;DR

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.

Memory aid
Sign in to see the mnemonic that makes this stick.
Easy to grasp

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.

Concept explanation~2 min read

Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.

Evaluating a grounded LLM system is fundamentally different from evaluating an unaugmented one. The output is the product of several stages, retrieval, ranking, assembly, generation, and an output level error tells you only that something is wrong, not which stage produced the bug. Context engineering as a discipline rests on the insight that you need metrics that probe each layer.

This question asks which metrics actually do that. The four correct answers (precision, recall, faithfulness, position) form the standard 2026 evaluation kit for any RAG or context heavy agent system. The two distractors (BLEU and TTFT) are widely used metrics in their own domains and easy to grab for the wrong job.

Why output metrics fail at localization

A bug in a RAG pipeline can live at any of several layers. The chunker might be cutting at the wrong granularity. The embedding model might be off domain. The retriever's top k might be too small. The reranker might be misranking. The prompt template might be putting the gold chunk in a bad position. The model might be ignoring its context. Each of these produces the same downstream symptom: a wrong answer.

An output level metric tells you the answer is wrong. It does not tell you which of those six possible causes is at fault. Worse, common output metrics are coarse: BLEU scores lexical n gram overlap and penalizes paraphrase, so a correct answer that uses different words from the reference can score lower than a fluent hallucination that happens to share vocabulary.

The context layer metrics solve this by checking properties of the context itself before or during generation. Precision and recall are properties of the assembled context, computable from retrieval logs without running the model. Faithfulness is a property of the answer's relationship to the context, computable post hoc by an LLM judge or NLI model. Position is a property of where chunks landed, computable from logs. Each one points at a specific stage.

The RAG triad in detail
Position as the fourth dimension
Why BLEU and TTFT are the wrong answers
Operational pattern in 2026
Sign in to unlock the full deep dive.

Situations where this technique stops working.

Sign in to see when this approach fails.

2–4 min · Everything important, quickly.

Sign in to see the quick scan of the deep dive.

Real products, models, and research that use this idea.

  • Ragas (an open source library) implements precision, recall, and faithfulness as LLM as judge metrics and is the canonical Python tool for RAG evaluation in 2026.
  • TruLens and Phoenix (Arize) ship the same triad plus tracing integration so you can see precision and faithfulness alongside each span in production.
Sign in to see more production examples.

What an interviewer would ask next. Try answering before peeking at the approach.

QHow would you guard against LLM as judge bias when measuring faithfulness?
A

Calibrate the judge against human labels on a sample, ideally with multiple judges to catch single model bias, and prefer judges from a different model family than the generator. Anthropic and OpenAI both publish guidance on this. Avoid using the same model as judge and generator on long answers because the judge will reward its own stylistic preferences.

2 more follow-ups an interviewer would ask next. Sign in to reveal them.

Red flags & common mistakes

The phrases that signal junior thinking. Click to expand.

Most common mistake

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.

Sign in to see all red flags and common mistakes.

60 second bullets to scan on the way to the call.

  • The four context layer metrics and what each measures

  • Why output metrics like BLEU miss retrieval bugs

Sign in to unlock the revision sheet.

Primary sources. Browse if you want the original framing.

Similar questions

Same topic, related formats. Practice these next.

4 curated
Next question
Pick the most effective intervention when an agent's context grows by 8KB every iteration
MCQ·Medium