Knowledge Retrieval

74 patterns in this category

Knowledge retrieval failures happen at every stage of a RAG pipeline independently — a query gets misunderstood before search even runs, the wrong or poorly-ranked documents get retrieved, a synthesized answer drifts from or hallucinates beyond correct context, a citation points at a source that doesn’t actually support its claim, and a fact that’s individually true gets applied at the wrong time, scope, or level of domain nuance. None of the five stages named above reliably catches an error made at an earlier stage: a synthesis model has no way to know retrieval already searched the wrong corpus, and a citation-verification step has no way to know the cited fact was true a year ago but isn’t anymore. That gap is what makes knowledge retrieval a category of parallel, independently-failing concerns rather than a single pipeline with one point of failure.

Key Takeaways

  • 7 goals and 74 patterns are documented here, spanning query understanding, retrieval and retrieval quality, answer synthesis, citation accuracy, retrieval relevance, and knowledge freshness.
  • Knowledge Freshness is the largest goal at 22 patterns — nearly a third of the category — because it spans three distinct levels of the same problem: domain-level judgment gaps, single-fact distortions, and system-level architecture gaps like missing expiration mechanisms.
  • Retrieval and Retrieval Quality together document 25 patterns spanning the same underlying pipeline stage at two levels of granularity — corpus/precision/recall/extraction fundamentals in Retrieval, and ranking/embedding/index-infrastructure nuance in Retrieval Quality.
  • Legal RAG tools are cited at a documented 17-33% hallucination rate even with retrieval augmentation (Stanford Legal RAG Hallucinations study) — retrieval augmentation reduces but does not eliminate hallucination, a finding that recurs across Answer Synthesis, Citation Accuracy, and Knowledge Freshness patterns alike.

Knowledge Retrieval Goals

GoalCoversPatterns
Answer SynthesisGeneration-stage failures after retrieval succeeds — context ignored, hallucination despite context, cherry-picking, source contradiction, confidence miscalibration11
Citation AccuracyCitations that exist but don’t do the job a citation is supposed to do — fabricated, misgrounded, wrong source, wrong granularity, broken links7
Knowledge FreshnessFacts and domain knowledge applied at the wrong time, scope, or level of domain nuance, plus the architecture gaps that make misapplication more likely22
Query UnderstandingMisreading what a user actually wants before retrieval ever runs — ambiguity, false premises, scope, multi-part fragmentation8
RetrievalPipeline-stage retrieval failures — wrong corpus, precision/recall tuning, content-extraction blind spots, context assembly, downstream synthesis/attribution12
Retrieval QualityRanking, embedding, temporal/jurisdictional validity, and index-infrastructure failures at a finer level of granularity than Retrieval13
Retrieval RelevanceStructural-attribute mismatch hiding behind high textual similarity in comparable-item retrieval1

Total: 74 patterns

How the Goals Relate

The 7 goals in knowledge retrieval are mostly parallel concerns rather than a strict pipeline, because a RAG system can fail at any one of the stages below independently of whether the others succeeded. Query Understanding failures happen before search runs at all. Retrieval and Retrieval Quality failures happen during search, at two levels of granularity — Retrieval covers corpus selection, precision/recall tuning, and content-extraction gaps; Retrieval Quality covers ranking, embedding-model health, and temporal/jurisdictional validity within an already-selected corpus. Retrieval Relevance is a narrow, single-pattern special case of retrieval matching on the wrong signal (text similarity instead of structural attributes). Answer Synthesis and Citation Accuracy both happen after retrieval succeeds — a correctly-retrieved set of documents can still be synthesized or cited incorrectly. Knowledge Freshness cuts across every other goal listed above: a fact can be retrieved correctly, synthesized faithfully, and cited accurately, and still be wrong because it’s stale, out of scope, or missing domain nuance that a generic pipeline never encoded. To localize an incident by symptom: the agent answers the wrong question entirely → Query Understanding; the wrong documents (or too many/too few) come back from search → Retrieval or Retrieval Quality; the right documents come back but the generated answer doesn’t reflect that content faithfully → Answer Synthesis; the answer cites a source that doesn’t actually support its claim → Citation Accuracy; every individual fact and citation checks out but the answer is still wrong for the moment or scope it’s needed in → Knowledge Freshness.

Frequently Asked Questions

Which goal should be checked first when a RAG agent gives a wrong answer?

Work backward through the pipeline: first confirm Query Understanding correctly parsed the actual question, then check whether Retrieval or Retrieval Quality found the right documents, then check whether Answer Synthesis faithfully used what was retrieved. If every stage checks out and the answer is still wrong, the fact itself was likely stale or misapplied — check Knowledge Freshness.

Do the 7 goals form a strict pipeline where fixing an earlier stage fixes everything downstream?

No. Because each goal documents an independent failure surface, a RAG system can have perfect query understanding, perfect retrieval, and still fail at synthesis or citation — or have flawless synthesis of a document that was itself stale. Fixing one goal’s patterns doesn’t guarantee the remaining goals are covered; a production-grade pipeline needs monitoring across all 7 simultaneously.

What is the difference between Retrieval and Retrieval Quality?

Retrieval takes a pipeline-stage view — corpus selection, precision/recall threshold tuning, content-extraction blind spots (OCR, tables), context assembly, and downstream synthesis/citation. Retrieval Quality covers a complementary, finer-grained set of concerns within an already-correctly-scoped search — ranking errors, reranker degradation, embedding-model version drift, and temporal/jurisdictional validity of otherwise well-matched documents.

Can retrieval augmentation alone eliminate hallucination?

No — the Stanford Legal RAG Hallucinations study documents a 17-33% hallucination rate even in retrieval-augmented legal tools, a finding echoed across Answer Synthesis’s Hallucination Despite Context pattern and Citation Accuracy’s Misgrounded Citation pattern. Retrieval reduces hallucination risk relative to a closed-book model, but doesn’t eliminate the model’s tendency to fill gaps or misapply retrieved content with confidence.

  • Document Processing — what happens before content ever reaches a retrieval index, including OCR, layout preservation, and classification failures that determine what’s available to retrieve
  • Reasoning and Thought — model-behavior and model-versioning failures that compound with knowledge-retrieval issues whenever the underlying model itself is degrading or has changed

Domain Best-Practice Ignorance

Frequency: Common
Category:

An agent retrieves and applies information that was once the accepted best practice in a domain but has since been superseded by an evolved standard, even though the underlying fact is still technically true. The agent's knowledge source (a fine-tuned model, a static knowledge base, or a cached document set) captured the practice at a point in time and was never re-indexed against the field's current consensus, so the agent confidently recommends an approach that a current practitioner would flag as outdated. The advice isn't factually wrong in isolation — it's wrong relative to what the domain now considers correct.

Domain Constraint Violation

Frequency: Occasional
Category:

An agent produces output or takes an action that violates a hard, non-negotiable constraint of the domain it's operating in — a regulatory requirement, a safety interlock, a licensing restriction — because the constraint was never surfaced by its retrieval layer. Unlike a best-practice miss, this isn't a matter of degree: the agent crosses a bright line (e.g. recommending a drug dosage that exceeds a labeled maximum, or drafting a contract clause that's unenforceable in a given jurisdiction) because its knowledge base treated the constraint as optional context rather than a gating rule.

Domain Context Loss

Frequency: Common
Category:

An agent correctly establishes domain-specific context early in a session — the specialty, jurisdiction, or technical stack it should reason within — but loses track of it as the conversation grows, silently reverting to generic, domain-agnostic behavior. The regression isn't triggered by the user changing topics; it happens because the domain-framing information falls out of the effective context window or gets diluted by intervening turns, and nothing in the agent's architecture re-asserts it.

Domain Exception Not Handled

Frequency: Common
Category:

An agent correctly retrieves and applies a general domain rule, but fails to recognize that the specific case at hand falls under a documented exception that overrides or modifies the general rule. The exception exists in the knowledge base — often in a separate section, footnote, or appendix — but the agent's retrieval or reasoning never connects the specific case to it, so the general rule is applied as if it were universal.

Domain Risk Blindness

Frequency: Occasional
Category:

An agent operating in a specialized domain fails to flag a risk factor that any competent domain practitioner would immediately recognize as significant, not because the underlying fact is missing from its knowledge base, but because that fact was never tagged or weighted as risk-relevant. The agent retrieves and states the fact correctly when directly asked, yet doesn't proactively surface it as a concern in a context where a domain expert would treat it as a red flag requiring attention.

Domain Rule Misunderstanding

Frequency: Common
Category:

An agent retrieves a correctly-stated domain rule but misapplies it because it misreads the precise conditions under which the rule holds — extending it to cases just outside its actual scope, or narrowing it to exclude cases it actually covers. The rule text itself is never altered or hallucinated; the failure is in the agent's interpretation of qualifying language like "only if," "except when," or "applies to X but not Y" that defines the rule's true boundary.

Domain Terminology Confusion

Frequency: Common
Category:

An agent interprets a domain-specific term using its common, general-language meaning instead of the narrower or entirely different meaning the term carries within the specialized domain, producing a response that's coherent but answers the wrong question. This happens most with terms that are ordinary English words repurposed with precise technical meaning (e.g. "significant" in statistics, "material" in accounting, "positive" in a lab result), where the domain meaning can even be the near-opposite of the everyday connotation.

Fact Context Loss

Frequency: Very Common
Category:

A retrieval system pulls a fact that is accurate on its own terms, but the qualifying context that makes it correctly applicable — the condition, population, or scope it was originally stated under — is dropped somewhere between the source document and the agent's final answer. The fact survives; the sentence or clause that scoped it does not, usually because chunking, summarization, or context-window truncation separated the fact from its qualifier.

Fact Generalization Error

Frequency: Very Common
Category:

An agent takes a fact that is true only under narrow, specific conditions — a particular study population, a specific product configuration, a specific regulatory jurisdiction — and presents it as a general truth applicable broadly. The source fact isn't misquoted; the error is in stripping away the scope that made it narrowly true and applying it as if it held universally.

Fact Inversion

Frequency: Occasional
Category:

An agent retrieves a fact correctly in terms of subject matter but reverses its direction or polarity — reporting "increases" when the source says "decreases," "improves" when the source says "worsens," or swapping which of two entities has the higher value. The topic and the entities involved are right; the relationship between them is flipped, which is often more damaging than an unrelated error because it's confidently stated and directionally opposite to the truth.

Fact Negation Confusion

Frequency: Occasional
Category:

An agent drops, adds, or misplaces a negation while processing retrieved text, asserting the opposite of what the source actually states. Unlike a full directional inversion, this failure is specifically about negation words and constructions ("not," "no longer," "except," "unless," double negatives) being mishandled during retrieval, summarization, or paraphrase, producing a claim that reads fluently but contradicts the source on the single most important word in the sentence.

Fact Partial Truth

Frequency: Very Common
Category:

An agent presents a fact that is technically accurate as stated but omits a critical qualifier that would materially change how a user should act on it — not because the qualifier is missing from the source, but because it was dropped somewhere in retrieval or generation and the resulting statement, while not false, is misleadingly incomplete. This differs from a fabrication: every word the agent says checks out against the source, but the selective omission changes the practical meaning.

Fact Probabilistic Mismatch

Frequency: Common
Category:

An agent retrieves a fact that was expressed by its source with explicit probabilistic or statistical framing — a likelihood, a confidence interval, a rate observed in a sample — and restates it as a flat, deterministic certainty, dropping the uncertainty that was integral to the original claim's meaning. The number or direction carried over is often correct; what's lost is the epistemic status of the claim, turning "this happens in about 30% of cases" into "this happens" or "this is what will happen."

Fact Source Confusion

Frequency: Occasional
Category:

An agent retrieves facts about two distinct entities — companies, people, products, or regulations — that share a similar name, and conflates attributes from one with the other in its response. The resulting statement is internally coherent and often partially correct, but attributes a fact that belongs to Entity A to Entity B, because retrieval matched on name similarity rather than correctly disambiguating which entity the query actually concerns.

Fact Timestamp Error

Frequency: Common
Category:

An agent retrieves a fact that was true during a specific window of time and applies it outside that window, because the fact's temporal validity period was mishandled — the agent misattributes when the fact was true, or fails to notice that the fact is now outside its valid period. Unlike a stale cache issue, this is specifically about misreading or mismanaging the time-scoping of the fact itself: applying a 2019 regulatory limit as though it were still current in 2026, or applying a "current" fact to a past scenario the user is actually asking about.

Knowledge Contradiction Unresolved

Frequency: Common
Category:

An agent's retrieval step pulls two or more facts from different sources that directly contradict each other on the same question, and the agent proceeds to answer using one of them (often whichever appears first, scores marginally higher in relevance, or was retrieved last) without noticing, reconciling, or flagging the contradiction to the user. The user receives a confident single answer with no indication that the knowledge base itself disagrees on the point.

Knowledge Expiration Not Enforced

Frequency: Very Common
Category:

A knowledge base or cache stores facts indefinitely with no time-to-live (TTL) or expiration mechanism, so content that was accurate at ingestion time but has a known or implicit shelf life (prices, policies, personnel, regulatory limits) remains fully retrievable and presented with the same confidence as current content, indefinitely, unless someone manually removes or updates it. This is a systems-level gap rather than a per-fact error: the architecture itself has no concept of "this should stop being trusted after time T."

Knowledge Scope Assumption Wrong

Frequency: Very Common
Category:

An agent applies a fact using an incorrectly assumed scope — the wrong jurisdiction, the wrong product version, the wrong organizational unit — because it never explicitly confirmed the scope the fact actually applies to versus the scope the user's situation is actually in. The fact is retrieved correctly and stated correctly for its true scope; the error is the silent assumption that the true scope matches the user's, when it may not.

Knowledge Source Reliability Unknown

Frequency: Very Common
Category:

A retrieval system treats every indexed source as equally trustworthy, with no mechanism to weight or rank content by the reliability of where it came from — an official, reviewed policy document is retrieved and used with exactly the same confidence as an unreviewed wiki page, a stale forum post, or a low-quality scraped page, simply because both matched the query with similar semantic relevance. When sources disagree or vary in quality, the system has no basis for preferring the more trustworthy one.

Knowledge Temporal Context Lost

Frequency: Common
Category:

A source document explicitly scopes a fact with "as of" framing — "as of Q3 2025," "current as of the last policy revision," "prices shown are for the current promotional period" — but that framing is stripped during retrieval, summarization, or generation, leaving the agent's stated fact presented as timeless and universally current rather than tied to the specific moment the source actually anchored it to. The number or claim itself is preserved correctly; only the temporal anchor that made it interpretable is lost.

Knowledge Update Lag

Frequency: Very Common
Category:

The system of record that an agent's knowledge base is supposed to reflect has been updated — a policy changed, a price changed, a product was discontinued — but the agent's indexed or cached copy has not caught up, because the ingestion/re-indexing pipeline runs on a cadence (scheduled batch job, manual trigger, event-driven pipeline with a backlog) that lags behind the actual rate of change at the source. The agent isn't wrong about what its knowledge base says; its knowledge base itself is behind reality.

Knowledge Version Mismatch

Frequency: Very Common
Category:

An agent answers using knowledge tied to one version of a product, policy, or API — often the version most represented in its training data or knowledge base — while the user is actually working with a different version, and the two versions differ in ways that make the agent's answer wrong or actively harmful for the user's actual situation. The agent isn't confused about the fact itself; it's applying a fact that is correctly true for version N to a user who is on version N+1 or N-1, without checking or asking which version applies.

Over-Retrieval

Frequency: Common
Category:

Too Many Documents Retrieved, Mostly Irrelevant

Semantic Similarity Retrieval Misses Structural Attributes

Frequency: Common
Category:

When retrieving a comparable or reference item using embedding similarity over text descriptions, agent selects textually similar but structurally incompatible item; downstream operations assume structural compatibility that doesn't exist

Synthesis Errors

Frequency: Common
Category:

Model Incorrectly Combines Information from Multiple Sources

Wrong Source Cited

Frequency: Common
Category:

Citation Points to Different Document Than Information Came From