Retrieval-Augmented Agents That Still Hallucinate
Retrieved evidence alone cannot stop AI agents from confidently stating false information.

Retrieval-augmented agents still hallucinate because retrieving evidence and using it faithfully are separate tasks. Traditional error monitoring fails for AI agents because it measures execution success alone. To catch confident, wrong output, monitoring must follow the full trace, from retrieved chunks through generated claims to tool use and final action.
Why adding retrieval doesn't make an agent's output trustworthy
The classic RAG assumption is that putting documents into the prompt makes the answer grounded. But retrieval recall measures whether evidence was found. A pipeline can retrieve the right passage and still override it with a plausible alternative. Retrieval reduces hallucination without making generation trustworthy by default.
That distinction widens the failure surface in an agentic pipeline. Ignoring a perfectly good chunk matters as much as inventing a citation, even though the former can leave retrieval metrics looking healthy. A crash announces that something went wrong. A grounded-looking answer instead invites trust, and its apparent correctness is precisely what makes the failure dangerous.
The four production failure modes that retrieval does not prevent
Chunk dilution occurs when a query retrieves many chunks but only a small number are relevant. The model blends signal with noise instead of using the passage that answers the question. Oversized chunks and similarity-only retrieval without a reranker worsen this problem. The answer gives no sign of how much material that was beside the point helped shape it.
Parametric leakage occurs when incomplete context leaves gaps that the model fills with pretraining memory. The result can contain plausible but unsourced numbers and facts. Medicine, law, and finance are at particular risk because made-up references can look like real ones. The generator’s fluency bias compounds the problem when smooth prose wins over a short, ambiguous, or technical passage.
Wrong-chunk citation can break the attribution chain even when the claim is true. The response cites one chunk while its actual support sits in another. A reader sees a citation and may accept the answer, but an auditor cannot follow that citation to the evidence. A monitor that checks only retrieval success misses the mismatch.
Context drift occurs when retrieved material is stale, inconsistent, or incomplete relative to the authoritative source. Policy documents, pricing, and legal rules can change without the index being refreshed. The answer can remain coherent, helpful, and specific while being wrong. These mechanisms are distinct, but a single pipeline can exhibit all four simultaneously.
How agentic pipelines amplify these failures across multiple hops
Classic RAG contains a relatively localized path from retrieval to generation to an answer. Agentic RAG adds repeated retrieval, planning, and tool calls. An unsupported intermediate summary can therefore become the premise for every dependent step.
Consider a hypothetical multi-hop compliance check. The agent retrieves a mix of policy and background material, then gives a summary that says a required step can be skipped. Its planner uses that summary to skip the step and proceeds toward a final action. Later calls may execute correctly against the wrong premise, so checking each call for technical success does not expose the original mistake.
Tool-calling hallucinations add function selection errors, parameter errors, and tool bypass, where the agent generates an output without a tool call. These sit above retrieval but can be triggered or worsened by retrieval noise. Loghmani’s semantic entanglement framework describes how overlapping representations in vector-based retrieval constrain attainable Top-K retrieval precision and corrupt downstream reasoning. Evidence quality must be assessed across the trajectory.
Why the failure modes have different shapes in practice
The four mechanisms explain how grounding breaks. A working taxonomy describes the forms those breaks take in production, which need separate detection metrics. One aggregate hallucination rate hides those differences.
Fabrication adds entities, papers, statistics, or case law that are made up. It is especially dangerous where readers are unlikely to verify the answer.
Misattribution attaches a correct fact to the wrong source or author. A faithfulness judge can pass it if the retrieved chunk itself supports the wrong attribution.
Unfaithful summary replaces an answer present in the retrieved context with a more plausible-sounding alternative. This is the canonical case of successful retrieval followed by failed generation.
Confident refusal states that no information is available when the retrieved context supports an answer. Safety-tuned models can exhibit this on borderline topics.
Tool-calling hallucination includes function selection, parameter, and completeness errors, as well as tool bypass. A convincing synthetic result is not evidence that execution occurred.
Self-contradiction occurs when responses in a multi-turn or multi-hop session disagree with each other. A task-success metric that stays flat can therefore hide a steep drop in how well one behavior works, such as tool selection accuracy.
What happens when these failures reach users
Air Canada’s 2024 case brought legal consequences as well as reputational ones. Bereavement policy and general refund procedures occupied the same undifferentiated text block, and the agent blended them into a fictional refund policy that contradicted the airline’s published terms. The British Columbia Civil Resolution Tribunal ruled that the airline could not disclaim responsibility. The important boundary was between what the system presented as authoritative and what the company actually permitted.
NYC MyCity’s 2023–2026 deployment showed a similar boundary problem on a large scale. Active legal prohibitions, background guidance, and outdated content sat together without metadata separation. The agent presented legal rules as friendly recommendations and active prohibitions as viable options, even though correct information existed in the index. Mayor Zohran Mamdani announced its shutdown in late January 2026, calling it “functionally unusable”, and the chatbot went offline in early February 2026.
Cursor’s incident involved a support agent inventing a “single-device policy” that did not exist. The fabricated policy statement prompted a public apology from the co-founder and became a trending story. Its immediate cost was reputational. Across these cases, the user encountered authoritative-looking misinformation.
Why traditional error monitoring fails for AI agents
Crash logs, latency dashboards, and HTTP status codes measure operational execution. They do not establish whether an answer is true, supported, or consistent with the task. A RAG hallucination can return HTTP 200, complete within normal latency, and produce fluent text. Every infrastructure signal can be healthy while the user receives a wrong answer.
Latency p95 can be especially misleading when it is used as the main sign of quality. Removing a self-check loop can improve response time while allowing more hallucinations through. The dashboard records only the speed gain.
The agent’s own account of its work cannot close that gap. When it fails silently, it may also fail to record its mistake accurately. External telemetry must capture tool-call results independently of the agent’s internal reasoning.
What observability for agentic RAG actually requires
A sufficient monitoring layer evaluates individual spans against the agent’s instructions and preserves their place in the full trace. It must identify which hop failed, which retriever returned unsuitable chunks, and whether a faithfulness judge agreed with humans on the disputed span. Lemma audits traces against an agent’s instructions and groups recurring failures into issues. This makes it a relevant option for detecting silent deviations that execution metrics leave unexamined.
That evaluation needs distinct criteria, including groundedness, faithfulness, and chunk attribution. Groundedness checks whether the response stayed within what the retrieved context says. Faithfulness checks whether there is clear evidence for every claim. Chunk attribution finds the passage that supports each claim, showing whether the evidence was missing or the generator ignored it or cited it wrongly.
The judge also needs scrutiny. Using a different model family from the generator reduces the risk of inflated groundedness scores from self-grading. Offline evaluation identifies failures retrospectively, while a pre-response faithfulness gate can catch them before users see them.
Detection metrics worth instrumenting at each stage of a RAG agent pipeline
Instrument retrieval first because failures in the evidence lead to failures when the answer is generated. Context retrieval quality should measure whether the passages fit the question and have enough to answer it. The chunk attribution gap then checks whether each generated claim can be linked to a retrieved passage. Interpreting that gap against the retrieved set helps distinguish a retriever that missed the evidence from a generator that bypassed it.
Instrument generation second with context adherence, per-claim faithfulness, and consistency checks. Context adherence detects content outside the retrieved passages. A per-claim faithfulness check based on whether the evidence supports the claim should return the worst-case claim rather than only an average, because one hallucination can disappear inside an otherwise supported answer. Consistency checks should extend across the multi-turn session.
Instrument tool calls third with measures of selection accuracy, parameter validity, and bypass. Selection accuracy tests whether the chosen tool fits the semantic intent of the query. Parameter validity checks whether the arguments are correct and follow the policy. Bypass detection must distinguish an actual tool result from generated text that merely looks like one.
Instrument the trajectory last, keeping the links between the measurements made at the earlier stages. A low-faithfulness retrieval summary makes every dependent downstream hop suspect, while retrieval loops that reach the step cap signal low-confidence retrieval. Trace-auditing tools, including Lemma, are relevant here because complete traces expose recurring deviations that isolated call metrics cannot explain. The unit of diagnosis is the chain of reasoning and tool use.
Reducing failure rates at the pipeline level before monitoring has to catch them
Against chunk dilution, add a reranker above the initial retriever as the highest-leverage change. Maximal Marginal Relevance retrieval can reduce redundancy, while smaller, semantically coherent chunks reduce irrelevant context. These changes improve the evidence presented to the generator. They do not establish that the generator will use it faithfully.
Against parametric leakage, use strict context-adherence instructions and require evidence for generated claims. Refusal without evidence raises the bar for generation, while runtime faithfulness gates catch cases where the prompt was insufficient. To catch wrong-chunk citation, score the attribution of each claim as it is generated. Verify citations against the source URL or DOI rather than accepting similarity between the claim and a cited passage.
Against context drift, treat index freshness as a monitoring concern. A stale index should trigger an alert. Separate policy documents, background guidance, and outdated content through metadata so their different roles survive retrieval. That separation belongs in the retrieval architecture.
To guard against cascading trajectory error, use self-check loops with clear rules for when to stop. Score draft faithfulness before release and retrieve again when the score falls below threshold, with step budgets to prevent runaway loops. Monitoring is still needed to catch what both layers miss.
What confident, wrong output costs when you find it late
A silent failure accumulates exposure for as long as it remains undetected. Each new user can get the same mistake that looks authoritative without setting off a conventional error event. Air Canada’s ruling showed that a disclaimer did not remove responsibility for misinformation on its own platform. Cursor’s fabricated policy showed how quickly a single wrong statement could become a public reputational problem.
Finding these failures earlier requires more than reviewing the final answer after a complaint. Per-span evaluation, faithfulness gating, and chunk attribution scoring place detection where evidence becomes claims and claims become actions. By grouping recurring trace failures into issues, Lemma offers one way to support that production diagnosis. The purpose is not to promise zero failures, but to shorten the interval between a silent deviation and its discovery.
A RAG agent will produce a confident, wrong answer. It will. The team needs to find it before users do. That is the job of production monitoring that understands what the agent was supposed to do.


