Track the retrieved excerpts actually sent to a model

Record the final source identifiers after filtering, ranking and context trimming. A search result list can include excerpts the model never receives.

Example

A retriever finds eight candidate chunks but prompt assembly sends only three because the input budget is limited.

What to do

  1. Record candidate IDs, eligibility decisions and final prompt assembly identifiers.
  2. Compare the stages on a fixture with intentional context trimming.
  3. Use the final list when evaluating citations or explaining a result.

How to verify

The audit distinguishes searched, eligible and supplied sources with no full payload in shared logs.

Limits

Some clients perform additional trimming. Verify the last controlled request boundary where feasible.

Spendplane for this workflow

See the masking demo and synthetic benchmark

Related reading