# Context precision and context recall

> Context precision is the share of retrieved chunks that are relevant; context recall is the share of relevant chunks retrieved. Definitions and RAG caveats.

Source: https://www.honeyhive.ai/learn/context-precision-and-recall (updated 2026-11-13)

Context precision is the share of the retrieved chunks that are relevant to the question. Context recall is the share of all relevant chunks that were retrieved. Both are the classic information retrieval measures, precision and recall, applied to the context a RAG system hands the model. A [RAG evaluation survey](https://arxiv.org/abs/2504.14891) defines Precision@K as "the fraction of relevant instances among the retrieved instances" and Recall@K as "the portion of relevant instances that have been retrieved over the total amount of relevant cases."

Precision tells you how much noise the model has to read. Recall tells you whether the evidence was in the context at all. For the full picture of scoring retrieval and generation together, see [how to evaluate RAG systems](/learn/rag-evaluation).

## The classic definitions

Retrieval metrics are computed per query against a list of passages a person (or a careful process) marked as relevant. The Wikipedia entry on [IR evaluation measures](https://en.wikipedia.org/wiki/Evaluation_measures_(information_retrieval)) gives the base formulas: precision is relevant retrieved over retrieved, and recall is relevant retrieved over all relevant. Cut off at the top k results and you get precision@k and recall@k. Some RAG tools score context precision with rank weighting instead, averaging precision at each position that holds a relevant chunk, which is the classic [average precision](https://en.wikipedia.org/wiki/Evaluation_measures_(information_retrieval)#Average_precision) idea. Check which version a score uses.

| Metric | What it measures | Sees rank order? | Labels needed |
|---|---|---|---|
| Precision@k | Share of the top k that is relevant | No | Relevant or not, per retrieved chunk |
| Recall@k | Share of all relevant chunks found in the top k | No | The full set of relevant chunks per query |
| Hit rate@k | Share of queries with at least one relevant chunk in the top k | No | At least one relevant chunk per query |
| MRR | Average of 1 over the rank of the first relevant chunk | Yes, first hit only | Relevant or not |
| nDCG@k | Gain of the ranking against the ideal ranking, discounted by position | Yes | Graded relevance |

Where the definitions come from:

- **Hit rate.** [SMARTFinRAG](https://arxiv.org/abs/2504.18024) defines it as the "proportion of queries where at least one relevant document is retrieved in the top-k results." It is a coverage check and ignores where in the top k the hit sits.
- **MRR.** The survey calls it "the average of the reciprocal ranks of the first correct answer for a set of queries," so it rewards a relevant chunk at rank 1 over one at rank 5 and ignores everything after the first hit.
- **nDCG.** Järvelin and Kekäläinen [proposed](https://dl.acm.org/doi/10.1145/582415.582418) cumulated gain measures that discount late-retrieved documents and compare the result with the ideal ranking, using graded rather than binary relevance. The survey describes NDCG as accounting for the position of relevant documents by penalizing those that appear lower.
- **Binary versus graded.** The survey notes that the non-rank metrics "evaluate binary outcomes, that is, whether an item is relevant or not." Only nDCG uses a degree of relevance.

## Known weak spots

Each metric has a failure mode worth knowing before you trust a number.

- Precision@k [ignores position](https://en.wikipedia.org/wiki/Evaluation_measures_(information_retrieval)) within the top k, and for a query with fewer than k relevant results even a perfect system scores below 1. In RAG this matters because the number of relevant chunks is often small, so the k you choose caps your score.
- Recall is trivial to maximize: the same entry notes it is "trivial to achieve recall of 100% by returning all documents." Report recall with precision, or with a small fixed k.
- Recall needs the complete list of relevant chunks per query. The same article calls recall not meaningful at web scale, where "many queries have thousands of relevant documents." In a RAG knowledge base of a known size it is feasible, but only if someone labels it. A [golden dataset](/learn/golden-dataset) is where those labels live.
- Terminology drifts. The survey's Hit@K row folds accuracy and hit rate together, and [MultiHop-RAG](https://arxiv.org/abs/2401.15391) defines Hit@K as "the fraction of evidence that appears in the top-K retrieved set," which behaves like recall when a question needs several pieces of evidence. When you read a score, check the formula, not the name.

## How they apply to RAG

In a [RAG pipeline](/learn/rag-pipeline), the retriever returns k chunks and the model reads them. Four choices decide what the numbers mean:

1. **What counts as relevant.** A chunk can contain the answer, part of it, or only related text. Pick a labeling rule and keep it. Your [chunking strategy](/learn/chunking-strategies) changes the unit being labeled, so metrics from different chunk sizes are not directly comparable.
2. **Which k.** Use the k you actually pass to the model. As k grows, recall@k can only rise or stay flat, while precision@k usually falls.
3. **Where labels come from.** Hand labels are the reference. [Synthetic question sets](/learn/synthetic-test-data-for-evals) can seed them, and [ground truth](/learn/ground-truth-llm-evaluation) in general needs review.
4. **Which score to read first.** If the answer is missing from the context, look at recall. If the answer is there but the model is distracted or the prompt is bloated, look at precision.

### Reference-free context scoring

Es and colleagues [introduced](https://arxiv.org/abs/2309.15217) a framework for reference-free RAG evaluation that works "without having to rely on ground truth human annotations." Its context dimension is context relevance: the context should contain "exclusively" the information needed to answer the question, so redundant text lowers the score. An LLM extracts the sentences from the context that help answer the question, and the score is the extracted sentences divided by the total sentences in the context. That is a sentence-level, precision-style measure. It cannot measure recall, because without a reference there is no list of what should have been found.

The same authors [report](https://arxiv.org/abs/2309.15217) that context relevance "was the hardest quality dimension to evaluate," that ChatGPT often struggles to pick out the crucial sentences in longer contexts, and that their method agreed with human annotators on 70% of pairwise comparisons for this dimension on their WikiEval dataset. Treat judge-based context scores as a signal to check against labeled examples, using the cautions in [LLM-as-a-judge](/learn/llm-as-a-judge).

### Rank-based metrics and LLM readers

Classic metrics assume a person scans results from the top. Trappolini and colleagues [argue](https://arxiv.org/abs/2510.21440) that nDCG, MAP and MRR rest on the premise that "human users sequentially examine documents with diminishing attention to lower ranks," while an LLM takes in all retrieved passages together. They add that these metrics ignore related but irrelevant passages that can hurt generation, and conclude that "classical IR metrics do not accurately predict RAG performance." They propose a utility-based metric, UDCG, and report correlation with end-to-end answer accuracy up to 36% better than traditional metrics. It is a proposal from one group, so keep precision, recall and a final-answer score side by side rather than replacing one with another.

## Reading the pair together

| Precision | Recall | Likely situation | Where to look |
|---|---|---|---|
| Low | Low | Retriever is missing and noisy | Embedding model, chunk size and overlap, metadata |
| Low | High | Evidence is found but buried in noise | Fewer chunks, reranking, filters |
| High | Low | Returned chunks are fine, but not all needed ones | Number of chunks returned, embedding model |
| High | High | Retrieval is sound | Check generation and faithfulness next |

Treat the table as a debugging order, not a verdict. In [agentic RAG](/learn/agentic-rag), where the model issues several searches, compute the metrics over the union of what it retrieved for each question.

## FAQ

### What is context precision in RAG?

The fraction of retrieved chunks that are relevant to the question. It is the information retrieval measure [Precision@K](https://arxiv.org/abs/2504.14891) applied to the chunks passed to the model. Es and colleagues [describe](https://arxiv.org/abs/2309.15217) a related reference-free idea, context relevance, which penalizes redundant information in the context.

### What is context recall in RAG?

The fraction of all relevant chunks that the retriever returned. A [survey](https://arxiv.org/abs/2504.14891) defines Recall@K as the portion of relevant instances retrieved over the total number of relevant cases. It needs a labeled list of what should have been found.

### What is the difference between hit rate and recall@k?

Hit rate scores a query 1 if at least one relevant document is in the top k, as [SMARTFinRAG](https://arxiv.org/abs/2504.18024) defines it. Recall@k counts how many of the relevant documents were found. Papers do not always agree on the terms: [MultiHop-RAG](https://arxiv.org/abs/2401.15391) defines Hit@K as the fraction of evidence found in the top K, which is closer to recall.

### Do classic ranking metrics predict RAG answer quality?

Only loosely. Trappolini and colleagues [argue](https://arxiv.org/abs/2510.21440) that nDCG, MAP and MRR assume a human reads results top to bottom, while an LLM reads all retrieved passages at once, so classical metrics do not accurately predict RAG performance.
