Agentic RAG Teardown Where Retrieval Fails Before Generation Does A teardown of production agentic RAG traces finds that most wrong answers originate in the retrieval layer rather than generation, with ingestion and chunking accounting for the majority of errors in sampled internal deployments while pure generation errors formed the smallest share. The analysis recommends separating failures into four layers—ingestion, chunking, retrieval, and generation—each with its own metric and owner, and tracking five numbers: per-source ingestion error rate, retrieval recall at k, answer support rate, abstention rate, and citation coverage. It argues that teams tuning prompts first are spending budget on the cheapest part of the problem. Agentic RAG systems fail in the retrieval layer far more often than in the generation layer. A teardown of production traces shows the same pattern repeating: the model answers confidently from a chunk that never contained the answer, and no operator notices because the response reads fluent and complete. Diagnosis starts by separating four failure layers that get merged into one vague accuracy number. Each layer has its own metric, its own owner, and its own repair path. Layer one is ingestion. Documents arrive with stale versions, duplicated sources, or broken parsers that drop tables and footnotes. Layer two is chunking, where fixed-size splits cut a definition away from its condition. Layer three is retrieval, where the ranking function returns plausible neighbors instead of the passage that states the rule. Layer four is generation, where the model extrapolates beyond the retrieved text. Production traces show the distribution is heavily front-loaded. In a sample of internal deployments, ingestion and chunking accounted for the majority of wrong answers, while pure generation errors formed the smallest share. Teams that tune prompts first spend budget on the cheapest part of the problem. A parser that silently drops a table produces an answer that is correct about the narrative and wrong about the numbers. The failure looks like a model problem because the generated text is grammatical and internally consistent. Control the layer with three checks. Record the source version and ingestion timestamp for every chunk. Reject documents that fail schema validation instead of indexing them in a degraded form. Keep a per-source error rate so a broken connector is visible as a metric, not discovered through a customer complaint. Fixed token windows split conditions from conclusions. A clause stating that a refund applies only within 14 days lands in one chunk while the exception lands in the next, so retrieval returns half a rule and generation completes it with a plausible guess. Structure-aware chunking keeps headings, table rows, and list items intact, and carries a parent reference so a retrieved fragment can be widened on demand. Overlap between chunks reduces boundary loss but inflates index size, so measure both retrieval recall and storage cost before choosing a window. Dense vector similarity rewards topical closeness, not factual adequacy. A passage about the refund policy scores high against a question about refund exceptions even when it contains no exception at all. Run hybrid retrieval with a lexical filter beside the vector search, then add a reranker that scores whether the passage actually answers the question. Track two separate metrics. Recall at k measures whether any correct passage was returned. Answer support rate measures whether the top passage contained the claim the response makes. A system can score well on recall and still fail on support. A model told to be helpful will answer from partial context. Give it an explicit abstention target: when retrieved passages do not contain the requested fact, return a documented gap instead of a synthesized answer. Route those gaps to a queue where a human resolves them and the missing passage gets indexed. Attach citation identifiers to every claim so an audit can trace each sentence back to a chunk. Responses without traceable support get flagged before delivery, not after review. Five numbers cover the stack: ingestion error rate per source, retrieval recall at k, answer support rate, abstention rate, and citation coverage. Segment by document family and by query class, because a single blended accuracy figure hides the workflow that fails one time in ten. Pair every metric with an owner and one expected change. If support rate falls from 0.94 to 0.81 for a document family, the corrective action belongs to the chunking or connector owner, not to the prompt engineer. Start with versioned chunks, structure-aware splitting, hybrid retrieval with a reranker, an abstention path, and citation coverage tracking. Add per-source ingestion monitoring when connectors multiply, and add evaluation sets per query class once the corpus exceeds a few thousand documents. This sequence keeps the repair work small and points each failure at the layer that caused it. Related architecture notes: rausalbahtiar.dev/blog https://rausalbahtiar.dev/blog .