VIEW THIS AS

Auto mode follows the Route Engine until you choose a viewpoint.

YOU ARE HERE

ROUTE CHECK

CONNECTED TO

WHAT NEXT

Use the canonical route for this room, or HELP if you are unsure.

Vocabulary Coding and Engineering | The Retrieval Anchor Trap: When AI Rewrites Your Question and Finds the Wrong Evidence

Two university researchers connect source data and plotting steps to a matching validated chart and caption checklist.

An AI can misunderstand a question before it reads any source, simply by rewriting the user’s words into a more convenient search query. Suppose a user asks, “Does the 2026 rule allow residents aged 65 or older to request review within 30 calendar days?” A retrieval system rewrites it as “senior citizen appeal deadline”. The shorter phrase sounds natural, but it has removed the year, inclusive age boundary, original procedure name and precise period. The AI may then retrieve a different policy and answer confidently from the wrong document. Vocabulary Coding and Engineering proposes a Retrieval Anchor Ledger: identify the exact source-critical terms in the user’s question, preserve them across query reformulation, and measure whether the resulting evidence genuinely supports the intended answer.

This problem has direct recent evidence. Kotte and Arora’s October 2026 GroundLM paper evaluated query rewriting across five benchmarks, three retriever families, three rewriting strategies and two open-weight models. They report that unconstrained rewrites can replace rare terms, names and numerics with less discriminating paraphrases; in their main Zephyr-7B configuration, nDCG@10 dropped by more than 0.05 on 26–76% of queries across studied settings. Their proposed guardrails preserved candidate anchors and fell back when checks failed. The researchers explicitly measured retrieval-side exposure to benchmark-labelled evidence, not the factual correctness of generated answers. Our proposed ledger uses that bounded lesson alongside the original RAG research to protect meaning before the model starts writing.

  • Original query: Retain the exact user wording, time and source context.
  • Anchors: Protect names, dates, negation, numbers, units and institution-specific terms.
  • Rewrite: Permit helpful expansion, but document changed or dropped constraints.
  • Retrieve: Compare original and rewritten queries for access to valid evidence.
  • Filter: Check source authority, effective date, version and full condition.
  • Generate: Answer only from evidence that actually supports the source-defined question.
  • Limit: A better search ranking is not itself proof of a correct AI answer.

Chapter index

1. The meaning can be lost before generation starts

Retrieval-augmented generation usually has several stages: form a query, retrieve source passages, select or rerank them and generate an answer. Errors can occur at every stage. An answer can be grammatically perfect while the right evidence never entered the model’s context.

If the query dropped an exact policy number or a rare domain term, the retriever may return common articles about a nearby subject instead. An AI summarising those passages can look well grounded because it cites something, even though it answers a question the user did not ask.

The proposed audit begins at the retrieval interface rather than judging only the finished paragraph. It preserves original questions, rewritten candidates, retrieved passages, source versions and the evidence that should have been available.

Back to index · Next chapter

2. RAG was designed to use external information

Lewis and colleagues’ NeurIPS 2020 RAG paper combines parametric language models with retrieval from non-parametric memory for knowledge-intensive tasks. This introduces a way to use inspectable and potentially updated sources.

It does not mean a system automatically retrieves the correct authority or faithfully interprets every source. A retrieval failure can deprive the generator of decisive evidence; a generation failure can still occur even when that evidence was retrieved.

A trustworthy design separates access to the relevant passage from the later claim that the response was correct. Each stage requires its own tests and source-linked output.

Back to index · Next chapter

3. Why query rewriting is attractive

A user may ask an abbreviated or conversational question that a literal keyword retriever struggles to match. A model can expand acronyms, add known synonyms or express the intent in more searchable language.

This can increase recall for some tasks. The question is whether the expansion respects the constraints that identify the exact source and decision. The best rewrite may include extra terms rather than replacing the key original words.

An application should compare the original and proposed rewrites on a relevant corpus. It should not assume that because the rewrite is more fluent, it is more faithful to the user.

Back to index · Next chapter

4. The new evidence-anchor research

Kotte and Arora’s October 2026 study investigates retrieval harms caused by query rewriting. Their reported failures involve rare domain terminology, named entities and numeric details being replaced with more common paraphrases.

The study tests specific retrievers, query sets and models. Its quantitative results should not be described as the error rate for all AI search, nor should retrieval ranking performance be equated with generated-answer accuracy.

The practical design principle is valuable: preserve terms that actually distinguish the target evidence, verify changes to them and fall back to the original query when a proposed rewrite is not justified.

Back to index · Next chapter

5. The fictional age-and-deadline question

Original: “Does the 2026 rule allow residents aged 65 or older to request review within 30 calendar days?” A bad rewrite could say “senior citizen appeal time limit.”

That rewrite loses four distinct anchors: year, inclusive age threshold, exact review procedure and calendar-day period. A source containing 2025 advice about a different kind of appeal may now outrank the operative document.

The test should not assign real eligibility rights to the example. It asks whether the retrieved evidence would let an independent reviewer answer the actual source-defined question.

Back to index · Next chapter

6. Anchor types need distinct handling

Named entities can identify an issuing institution, programme or document. Numbers can specify thresholds. Negation can reverse a prohibition. Dates can separate current rules from superseded pages. Units can distinguish thirty days from thirty months.

Different anchors require different comparisons. An exact policy identifier may demand character-level preservation; a user’s informal reference to a programme might benefit from a verified official alias.

The system should document which substitutions are safe under the source rather than adopt one rule that no rewriting is ever allowed.

Back to index · Next chapter

7. Preserve a query rather than a list of keywords

An important anchor can be a relationship, not an isolated word. “Only residents who have completed identity review” differs from “residents who completed only identity review.” The word only appears in both strings but its scope changes.

A ledger therefore records actor, action, operators, qualifier and reference span where relevant. Merely verifying that every token appears somewhere in the rewrite can miss an altered condition.

For high-impact queries, a structured interpretation of the original request can accompany the search words. Its fields should remain provisional and linked to the source rather than treated as a universal meaning representation.

Back to index · Next chapter

8. Synonyms can help and hurt

A user says “employment agreement”; an authorised source may use “employment contract.” Adding both phrases could help retrieval without losing the user’s original wording. But replacing a defined term with a loose everyday synonym could retrieve the wrong legal concept.

The right mapping depends on the target corpus and domain. A general thesaurus or model embedding does not establish exact institutional equivalence.

Test candidate synonyms against known distinguishing cases and preserve the source term when the mapping is close or unresolved. A broad retrieval suggestion is not a final statement of source truth.

Back to index · Next chapter

9. Lexical and neural retrieval behave differently

A keyword method may be particularly sensitive to the presence of rare exact words. A dense retriever may find semantic paraphrases but lose a narrow distinguishing term. Neither behaviour is universally better for all queries.

The BEIR benchmark (2021) evaluates several retrieval families across heterogeneous datasets and highlights trade-offs in zero-shot performance and efficiency.

A language-engineering trial should include credible lexical and semantic baselines, selected by the actual corpus. It should not assume one model architecture can solve every source-reference problem.

Back to index · Next chapter

10. The original question is the safe fallback

An expansive rewrite that fails to preserve a policy number should not silently replace the user’s question in the only search request. The original query can remain available for a parallel retrieval or fallback.

This does not guarantee that the original will find the answer. A user may provide an incorrect or ambiguous reference. The system should distinguish a faithful search for the user’s words from independent verification of the right source.

Both outcomes can be reported: what the original query retrieved and what a reviewed expansion added. That makes failures easier to diagnose.

Back to index · Next chapter

11. Retrieval success is not answer correctness

A system might retrieve the correct paragraph but misinterpret the word unless. Another could retrieve several relevant passages, then answer from an obsolete one.

The October 2026 study isolates retrieval-side access to benchmark-labelled evidence, not downstream correctness of final generated answers. Its measurements should not be relabelled hallucination rates.

The proposed full pipeline therefore needs separate measures for evidence exposure, passage selection, correct attribution, decision fidelity and appropriate uncertainty.

Back to index · Next chapter

12. Source version is a critical anchor

A question about current policy may require the latest operative source, while a historical question may require a previous version. Rewriting away the date can merge those tasks.

The system should identify source issuer, effective interval and version, not just title similarity. A page published recently may quote an old provision, and a document with an old upload date may still contain an applicable rule.

Source metadata supports investigation but does not automatically prove legal authority. The relevant institution’s actual documents govern the interpretation.

Back to index · Next chapter

13. Exact numbers can disappear in summaries

Thirty calendar days can become “about a month”. A 65-or-older condition can become “senior residents”. These paraphrases may be fine for a broad overview but unsafe when the user’s question concerns someone exactly at the threshold.

A correct search reformulation should preserve the threshold and allow the generator to explain it precisely. The generated answer should cite the source containing that specific distinction.

A counterexample at exactly 65 or at a short calendar month can demonstrate why the replacement changed the result.

Back to index · Next chapter

14. A citation can support the wrong question

An AI answer can include an authentic citation to a related document while failing to address the original constraint. Citation existence is not proof of query fidelity.

The evaluator needs to check whether the cited passage supports each source-critical claim: who qualifies, what action is permitted, from what date and under which exception.

A passage that answers a broader question can be useful background, but it should not be represented as confirming a precise official rule it never stated.

Back to index · Next chapter

15. Long contexts introduce a second failure stage

Liu and colleagues’ Lost in the Middle study (TACL 2024) examines tasks where models’ performance changed with the position of relevant information in long context.

Even if retrieval exposes the right evidence, the model may overlook it in a large collection of passages. Thus query fidelity and attention to retrieved evidence are separate dimensions.

A good experiment manipulates source position after holding retrieval constant, and separately tests query rewriting before generation. This identifies which stage requires improvement.

Back to index · Next chapter

16. Some questions require clarification before search

A user asks “What was the rule last Friday?” without identifying the relevant institution or case. A rewrite that chooses the most popular policy is not faithful simply because it produces searchable words.

The assistant can ask for the missing programme or offer possible interpretations clearly labelled as possibilities. Search can still help discover options, but the system must not convert a guess into source-authorised certainty.

A robust ledger records unresolved references rather than filling every field with a model’s best-sounding invention.

Back to index · Next chapter

17. Compare retrieval on identical source corpora

A controlled pilot uses the same collection of versioned documents and reviewed relevance labels for original and rewritten queries. It can assess how often each method exposes the decisive source in its top results.

Use ranking measures appropriate to the task while recording critical anchor changes separately. An improvement in average relevance can coexist with serious failures on unusual numbers or rare source names.

Source claims should be assessed independently from ranking metrics. A passage may be top-ranked and still not answer the user.

Back to index · Next chapter

18. A fictional twenty-query test

Create twenty source-linked questions: five involving rare names, five exact numeric thresholds, five effective dates and five exception clauses. Include harmless expansions and intentionally damaging rewrites.

Evaluate direct lexical retrieval, a neural retriever and a guarded rewriting approach with a fixed corpus. Record whether the necessary source appeared and whether the final answer preserved the original proposition.

These counts describe a proposed experiment, not findings about a deployed service. A small test must report its limits and should not be marketed as a universal retrieval guarantee.

Back to index · Next chapter

19. Test the source-to-action boundary too

A retrieved document may contain “release this file immediately”. That text may be a quote or a rule for another actor; it does not automatically become the user’s instruction to the AI.

The evidence ledger should carry the source and its authority status. Even a perfectly grounded answer cannot grant external tool permissions to a recipient or resource not authorised by the user.

This protects the distinction between learning from a document and obeying its embedded imperatives, as covered in the Semantic Noninterference chapter.

Back to index · Next chapter

20. A correction can start with the exact missing anchor

When an answer is wrong, identify whether the missing evidence resulted from dropped terms, source selection, reranking, long-context position or generation. A generic prompt saying “be more accurate” may not address the real failure.

A practical report can show original question, rewritten query, lost anchor, required source passage, retrieved ranking and observed output. This is useful evidence for a targeted fix.

A new retriever, more prompts or bigger model should be compared with the simpler alternative of retaining exact source terms. Complexity needs measured justification.

Back to index · Next chapter

21. The Z-layer should be a map back to the user

An immutable source-scoped concept can help a system remember that the user asked about a particular threshold or named policy. Derived query terms may expand that concept for retrieval while preserving the original intent record.

The layer cannot determine whether a source is authoritative merely from a name, nor guarantee that every relevant page will be found. It must keep uncertainties and missing evidence visible.

A credible improvement would show more accurate access to the right source and better subsequent decision fidelity on unseen cases. That is the frontier: preserve the user’s question before claiming to know its answer.

Back to index

Frequently asked questions

Can rewriting a search question make results worse?

Yes. Replacing rare terms, numbers or precise names with generic paraphrases can hide the source required to answer the original question.

Does better retrieval ranking prove an AI answer is true?

No. Evidence access, source authority, contextual interpretation and response correctness require separate evaluation.

Should query rewriting be banned?

No. Useful expansion is possible when it preserves important constraints, with the original query available as a fallback.

What did the October 2026 GroundLM research measure?

Retrieval-side exposure to benchmark-labelled evidence under stated models and datasets, not end-to-end factual correctness of generated replies.

What is the first meaningful audit?

Preserve the original question, compare rewritten anchors and inspect whether the decisive source appears under a fixed corpus and reference.

Primary research and technical sources

Research status: RAG and query-rewriting benchmarks are established methods with bounded findings. The Retrieval Anchor Ledger is a proposed source-fidelity design. Hypothetical policy examples are not real eligibility guidance; retrieval measures must not be relabelled as generated-answer truth or global AI reliability.