Building with context For engineering leaders
Evaluate retrieval quality: measure useful application, not just recall
To evaluate RAG retrieval quality, measure useful application separately from delivery: a successful context call establishes only that a result arrived. To assess useful application, inspect what the evidence changed or specifically confirmed in one task, then keep the task result and any later independent return as separate observations.
Choose the claim before choosing the count.
A context result arrived, the caller rated it partly useful, and a plan mentions a recovered constraint. Those observations matter, but they answer different questions. The response does not establish that the source applied to this task. The rating does not establish implementation. A successful task later would not prove that retrieval caused the outcome.
Google Research’s HEART paper describes mapping product goals to metrics. The same starting discipline is useful here: name the claim, then the observation that could support it. The context-specific record below is a proposed method, not a validated metric framework or a claim about implemented product tracking.
The question is whether context was used appropriately in a bounded task. That can mean changing a plan, confirming an existing constraint after checking it, excluding an inapplicable source, or asking a necessary question. Do not require a code edit merely to count the exercise as useful.
Keep delivery, judgment, action and outcome separate.
Use an evidence ledger rather than a compulsory funnel. Some tasks need no retrieval. Some returned material should be rejected. The owner should record the strongest supported observation and the missing evidence, without pushing every task toward a downstream label.
A caller’s yes, partly or no assessment belongs alongside this ledger as a reported contribution judgment. Show which results were rated. Missing feedback stays unknown. A positive rating is useful testimony about contribution, not independent proof that the task action or outcome occurred.
| Observation | Evidence that could support it | Limit to retain |
|---|---|---|
| A result was delivered. | The completed response for the identified task/episode. | Returned records may be irrelevant or incomplete. |
| Applicability was checked. | An inspected source and its current caller, version and decision scope. | Inspection does not prove the source is complete or infallible. |
| Context informed or confirmed an action. | A task record links the source to a specific decision, exclusion, question or plan revision. | A mention or a rating alone does not establish that contribution. |
| The task was verified within a boundary. | Actual accepted checks and outputs for the implementation or decision in scope. | This does not attribute the whole result to retrieval or prove every behavior. |
| Later independent use occurred. | A separate human-initiated task with observed appropriate use and known assistance conditions. | Retries, background calls and founder-led demonstrations are different observations. |
Work through a fictional planning episode.
This entire episode is fictional. An engineer is changing an interactive search parser. The first plan covers ordinary search terms. A context call returns two earlier decisions: one about a retired batch job’s page size, and another requiring the current interactive caller to preserve its existing empty-query behavior.
The engineer inspects the permitted original sources and their scope. The batch-job limit belongs to a different caller and is excluded from this task. The interactive contract still applies, so the engineer adds the empty-query behavior and a corresponding fixture check to the plan. The task record links the source to that revision. The caller then reports the response partly useful.
At this cutoff, implementation and test execution remain pending. No later independent task has been observed. The record supports a specific planning contribution, including appropriate nonuse of the batch-job decision. It does not support a completed feature, correct retrieval in general, faster delivery, activation or retention.
| Episode evidence at the cutoff | Allowed conclusion | What remains missing |
|---|---|---|
| A completed response contained two decisions. | Delivery occurred in this fictional episode. | Delivery alone says nothing about either decision’s applicability. |
| Source inspection excluded the batch-job rule. | The engineer made a documented scope-based exclusion. | No claim that all irrelevant context was found or that more records would help. |
| A source-linked revision added the current empty-query contract and fixture to the plan. | Context informed this bounded planning action. | Implementation and the fixture’s actual execution result. |
| The caller rated the response partly useful. | A caller contribution judgment was recorded. | The rating alone cannot verify the plan revision or task result. |
| No subsequent independent episode was observed. | Independent return is unknown at this cutoff. | A later qualifying episode and its assistance conditions. |
Record the contribution without crediting the entire task.
Ask the engineer which action the source changed or specifically confirmed, and inspect the relevant task record where permitted. Preserve the earlier plan when it exists; do not invent a before-state later. If no earlier record was retained, describe the observed use and leave the amount of change unknown.
If the constraint was already present and retrieval added nothing, report redundancy. If checking it provided a specific confirmation, record what was checked rather than claiming saved time. If a maintainer or founder supplied the decisive interpretation, label the use as assisted; if the assistance conditions are unknown, keep them unknown.
The task owner supplies action evidence. The relevant maintainer confirms the contract’s scope, and the reviewer records actual verification results. A completed synthetic reader exercise is an editorial observation, not a customer application event. Keep those origins attached when combining records.
Use a small application record before building a dashboard.
One permitted task record, source links and an observed action are enough to try this review. Agree on access and minimal identifiers before collecting evidence. Keep private work content in its authorized location; broad analytics need not contain prompts, returned context or source text.
Here is the fictional episode’s filled record. It is a worked illustration, not evidence that any real account reached these states.
Task/episode: fictional interactive-search parser change.
Goal: preserve the current caller’s accepted behavior while planning the change.
Returned: batch-job page-size decision and interactive empty-query decision.
Applicability: inspected scopes; exclude retired batch-job rule, retain current caller contract.
Contribution: source-linked plan revision adds empty-query behavior and proposed fixture check.
Caller judgment: partly useful; this is separate from inspected action evidence.
Action owner: task engineer; contract scope owner: interactive-search maintainer.
Verification: implementation and test execution pending; no passed result recorded.
Return observation: no later independent task observed; status unknown.
Assistance: record who supplied interpretation; do not infer independence from a completed call.
Allowed claim: context informed the documented planning action in this fictional episode.
Missing next observation: actual scoped implementation/check evidence, recorded by its owner.Count only the unit you defined.
Before calculating any real rate, define the unit, eligibility, time window, evidence cutoff and denominator. A task can contain several calls, retries and ratings. Deduplicate within the unit being counted instead of treating those calls as independent returning users. Show measurement coverage and failures separately; absent instrumentation or feedback does not establish nonuse.
Independent return needs a separate relevant task and evidence about how it was initiated and assisted. An automatic scheduled call or a guided follow-up does not establish that a person returned independently for value. Even an observed return cannot by itself establish why they returned.
Try the ledger on one active engineering task with its owner. Write the strongest conclusion the available evidence supports, then name the single observation needed for the next claim. Stop or simplify if the record adds work without clarifying a decision. This exercise does not establish ROI, a delivery-time gain or a comparative tool advantage.
Frequently asked questions
How do you evaluate retrieval quality beyond recall?
Name the claim first, then the observation that could support it. Delivery, an applicability check, a task action informed by context, task verification and later independent use are separate observations with different evidence. Inspect what a returned source changed or specifically confirmed in one bounded task, and record the strongest supported observation alongside the missing evidence.
Is a user's usefulness rating enough to measure retrieval quality?
No. A caller's yes, partly or no rating is useful testimony about contribution, but it is not independent proof that a task action or outcome occurred. Record it alongside inspected action evidence, show which results were rated, and keep missing feedback as unknown rather than counting it as positive or negative.
Does useful context have to change the code?
No. Useful application can mean changing a plan, confirming an existing constraint after checking it, excluding an inapplicable source, or asking a necessary question. Do not require a code edit to count a use. If the constraint was already present and retrieval added nothing, report redundancy; if it provided a specific confirmation, record what was checked.
How should I count retrieval usage across tasks?
Define the unit, eligibility, time window, evidence cutoff and denominator before calculating any rate. A task can contain several calls, retries and ratings, so deduplicate within the unit. Show measurement coverage and failures separately; absent instrumentation or feedback does not establish nonuse. Automatic or guided follow-up calls do not establish independent return.
Sources and further reading
Prepared with AI assistance and reviewed for source fidelity and practical usefulness. Examples marked fictional are illustrations, not customer results.