Skip to content

Locate a grounding failure

Choose a retrieval or grounding improvement based on evidence from the stage where quality breaks.

Scenario

A lab instrument assistant cites a manual confidently when it describes the wrong revision. Search results contain the right manual, but the passage with the replacement instructions rarely reaches the model.

Explanation

Trace an answer through four stages. At ingestion, check document version, access filters and whether chunk boundaries cut the claim apart. At candidate search, measure whether a relevant passage appears anywhere in the candidate set. Embeddings can recover paraphrases and lexical search can recover exact identifiers. A hybrid search can combine those strengths. At ranking, check where relevant results land and whether reranking helps under the same cutoff. At generation, check which claims each returned source actually supports.

A fixed retrieval stage is easier to evaluate for common, single-hop queries. Agentic search can follow intermediate clues and compare multiple sources, with extra calls, latency and more paths to test. Whichever design you choose, carry revision and provenance through to the answer. If the evidence is thin or conflicting, say what is uncertain or escalate. Confidence should reflect observable signals such as coverage and contradiction, with calibration against labeled examples.

Worked example

For the instrument assistant, a labeled sample shows the relevant passage in 46 of 50 candidate sets but in only 21 of the final results. Label passages by revision and test a reranker on those same candidates. If ranking improves but answers still cite a claim the evidence does not support, fix and evaluate the generation stage separately.