The supplier portal assistant had every correct fact in front of it. The invoice row said blocked. The procurement API confirmed the goods receipt. The graph showed identifiers that did not line up. The scan extraction had caught the mismatched purchase-order number. The payment stream carried a payment-run event for tonight. Asked when the supplier would see money, the assistant compressed all of it into one fluent sentence: payment will go out tonight.
Every retrieval step succeeded. The synthesis invented the payment date. Nothing in the pipeline was built to notice, because nothing in the pipeline examined what the evidence added up to before answering.
This is Post 4 in the Retrieval Patterns series. Post 1 covered the retrieval upgrades, Post 2 covered the question-side patterns, and Post 3 covered the source-side patterns. This post closes the series with the group that changes what the system is.
When the pipeline starts making decisions
The first three groups fixed inputs. Better retrieval widened and sharpened what came back. Better questions rebuilt what went in. Better sources reached evidence embedded text could never carry. All three assume the same division of labor: the pipeline retrieves, the model answers, and neither one asks whether the process is working.
This group breaks that assumption. Should the system trust this retrieval? Should it drop these sources and search again? Should this question take the expensive path or the cheap one? Which lookup comes next, and what did we learn yesterday that matters today? Each question is a decision, and a system that makes decisions about its own process has started down the road toward agentic behavior whether the team planned that or not.
That is the thesis of this final group. Self-RAG, corrective retrieval, and adaptive retrieval are the self-checkers: the system grading its own work before the user sees it. Agentic RAG, IRCoT, and memory-augmented retrieval are what happens when the same instinct gets a planner, a reasoning chain, and a past. Modular RAG is the engineering discipline that makes any of it operable.
The honest caveat runs through every section below. A system that decides needs a record of what it decided and why. Without one, every improvement in this post makes the failure harder to debug, not easier.
Self-RAG
The Self-RAG paper trains a model to critique itself while it works. The model learns special reflection signals: whether retrieval is needed at all, whether what came back is relevant, whether the generated answer is supported by the evidence, and whether the answer is worth showing. Retrieval, generation, and critique stop being separate systems and become one trained behavior.
The production version is usually lighter. Few teams fine-tune a model with reflection tokens. What ships instead is a self-critique loop: retrieve, score the retrieval before generating, rewrite the query and retry once if the score is low, then generate with the stronger evidence. The paper’s insight survives even when its training method does not: the system should form an opinion about its own evidence before it commits to an answer.
Self-critique catches the weak first retrieval; the same loop fails when grader and retriever share a blind spot.
Where it earns its keep. High-stakes question answering where a wrong answer costs more than the extra passes: medical, legal, financial, and compliance-adjacent support systems. Also any system whose retrieval quality varies wildly by question type, because the critique step catches the weak tail that aggregate metrics hide.
Where it doesn’t. Every critique pass costs latency and tokens, and the critic is only as good as its ability to judge relevance, which is the same capability the retriever was missing. Simple high-volume question answering cannot justify the overhead. Subjective questions have no relevance ground truth to grade against.
The trained version remains close to paper; the instinct is production. Almost nobody fine-tunes reflection tokens. Many production systems run retrieve-grade-retry loops, which is the paper’s idea wearing practical clothes.
Corrective RAG (CRAG)
Corrective RAG makes the check somebody else’s job. A separate evaluator grades each retrieved document: correct, ambiguous, or incorrect. Correct documents pass through, sometimes after being stripped down to their relevant portions. Ambiguous ones get supplemented. Incorrect ones get dropped entirely, and the system searches again or falls back to the open web when the corpus has nothing better.
The CRAG paper showed the pattern working with a lightweight evaluator rather than an expensive model call, which is why it retrofit so well. The pipeline around it barely changes. What changes is that bad evidence now has somewhere to go other than the prompt.
Corrective retrieval gives bad evidence somewhere to go; without source discipline, the fallback imports polished propaganda.
Where it earns its keep. Corpora with known gaps: products in transition, documentation that lags the release cycle, knowledge bases merged from acquisitions. Any system where “the answer is not in our corpus” is a normal Tuesday rather than an edge case, because the fallback path is the feature.
Where it doesn’t. The evaluator is a model, and it misjudges like one. Strict latency budgets suffer because correction is a serial detour. The web fallback imports whatever the public internet thinks, which in most industries includes a great deal of vendor marketing dressed as fact. A fallback without source quality rules is a spam intake pipe.
Production-ready for teams that need it. The evaluator can be small and cheap, the retrofit is contained, and the failure modes are visible. The work is in tuning fallback policy, not in exotic machinery.
Adaptive RAG
Not every question deserves the same pipeline. Adaptive retrieval routes each question to a strategy matched to its difficulty: no retrieval at all for what the model knows, a single retrieval pass for ordinary questions, multi-step retrieval for the hard ones. The Adaptive-RAG paper trains a small classifier to predict question complexity and pick the route.
In production the router is often heuristic rather than trained. Teams start with rules, measure which route each question needed, and graduate to a classifier when the rules stop scaling. Either way the economic argument is the same: most query loads are mostly simple questions, and the expensive path should be reserved for questions that need it.
Adaptive routing makes cost follow difficulty; a misrouted question never pays for the retrieval it needed.
Where it earns its keep. High-volume systems with mixed query loads: customer support, internal knowledge assistants, anything where half the traffic is simple lookups and the other half is investigation. The savings are real because cost follows the route, and most questions take the cheap one.
Where it doesn’t. Routing mistakes are silent quality failures. A question misrouted to the cheap path never gets the retrieval it needed, and nobody sees it happen because the answer still sounds fluent. The classifier also drifts as the query mix changes, so routing quality becomes its own maintenance surface.
The trained classifier is uncommon; the routing instinct is standard practice. Most mature systems eventually implement some version of complexity routing, usually as rules first. The paper formalizes what production teams arrive at on their own.
Agentic RAG
The self-checkers grade a retrieval the pipeline already made. Agentic RAG removes the fixed pipeline underneath. Retrieval becomes a tool the agent calls, alongside every other source the system can reach. The agent decomposes the question, picks the tool for each part, evaluates what came back, and decides whether to answer, retry differently, or look somewhere else.
This is the pattern the whole series has been walking toward. The query decomposition is Post 2’s branching with judgment attached. The source selection is Post 3’s map turned into runtime decisions. The evaluation instinct is the self-checkers with teeth. What changes is who drives: the flowchart stops deciding, and the model starts.
Agentic retrieval decomposes the question across the right systems; fixation on the wrong tool burns the budget without improving the answer.
Where it earns its keep. Multi-part questions, investigations that span systems, workflows where retrieval and action interleave. The supplier invoice question from the opening of this post is the canonical case: no single retrieval answers it, and the sequence of lookups cannot be written down in advance because each depends on what the last one found.
Where it doesn’t. Adaptability is paid in latency, tokens, and observability. A decomposed question might mean ten model calls where a fixed pipeline makes two. Costs become variable per question in ways finance teams notice. And the debugging surface inverts: when the answer is wrong, the question is no longer “what did retrieval return” but “why did the agent decide that,” which is unanswerable without decision records and traces.
Production, with governance as the price of admission. Agentic retrieval ships in copilots and support systems today, but the deployments that survive are the ones that treat decision logging, stop conditions, and cost ceilings as core features rather than afterthoughts. Our RAG vs agentic AI guide covers where the line sits.
IRCoT
Multi-step questions have a chicken-and-egg structure: you cannot write the second query until you have the first answer. IRCoT, from the paper on interleaving retrieval with chain-of-thought reasoning, resolves it by alternating. Retrieve for the first step, reason over what came back, let the reasoning shape the next retrieval, repeat until the chain completes.
The contrast with agentic RAG is control. Agentic retrieval hands the whole loop to the agent’s judgment. IRCoT is narrower and more disciplined: the reasoning chain is the driver, and retrieval serves each step of it in order. For questions that decompose into a fixed logical shape, the narrower loop is easier to test and cheaper to run.
Interleaved reasoning builds each lookup on the last answer; it amplifies a wrong first inference just as faithfully.
Where it earns its keep. Genuine multi-hop questions: which supplier feeds the factory that makes the recalled component, and what other products share it. Regulatory questions where obligations chain through entity structures. Anywhere the question has a fixed logical skeleton but the entities must be discovered step by step.
Where it doesn’t. Single-step questions gain nothing but overhead. The chains compound error in a specific direction: a wrong inference early on does not stay local, because every later retrieval is built on top of it. Step count is also unbounded in naive implementations, so cost control means capping chain length and accepting partial answers.
Closest to paper in this group alongside the trained version of Self-RAG. The technique is proven on multi-hop benchmarks and appears inside agent loops, but few production systems implement the explicit interleaved pattern as described. Its real legacy is conceptual: reasoning and retrieval should alternate, not batch.
Memory-augmented retrieval
Every pattern so far treats each question as the first conversation the system ever had. Memory-augmented retrieval gives the system a past. Facts, preferences, corrections, and decisions from previous sessions are written to a store, and retrieval pulls from that store when old context becomes relevant again. The MemGPT paper framed the model as an operating system managing its own memory tiers, and production systems have been converging on the idea since.
Memory is the one writeable source in this entire series. Everything else reads. That difference is the power and the problem: a retrieval system that can learn can also learn wrong, and memory poisoning is what happens when the learning has no curation behind it.
Memory turns a returning question into a continuing relationship; without curation, one bad fact outranks the system of record.
Where it earns its keep. Long-running relationships: support systems that should remember the troubleshooting already attempted, assistants that should remember a customer’s plan tier and environment, internal tools whose users correct them and expect the correction to stick. Our post on designing the memory layer for production agents covers the architecture in depth.
Where it doesn’t. Most questions do not need a past, and bolting memory onto transactional question answering adds a write path, a curation problem, and a privacy surface for zero benefit. Memory also ages: stored facts go stale silently, and a confident stale memory is worse than no memory because it arrives with the authority of history.
Production in consumer products, uneven in enterprise. Chat products ship memory broadly. Enterprise adoption lags because writeable memory inside a business system is a governance object: it needs curation, expiry, audit, and a path back to the raw record, which is exactly the design the memory literature keeps rediscovering.
Modular RAG
The last entry is not a pattern so much as the admission that production systems never pick only one. Modular RAG, surveyed in the Modular RAG paper, treats the pipeline as composable stages: query understanding, retrieval, ranking, generation, evaluation, each one swappable and testable on its own. The nineteen patterns in this series are the parts catalog. Modularity is what lets a team assemble the five it needs and replace one when it stops earning its cost.
This is what mature systems look like in practice. The support assistant routes simple questions away from retrieval, branches ambiguous ones, corrects weak retrievals, queries the billing database directly, and remembers the customer’s environment, all in one system. Nobody implemented “a RAG pattern.” They assembled one.
Modularity makes each stage a regression test rather than a rewrite; assembled carelessly, it is machinery in search of a workload.
Where it earns its keep. Any system expected to live longer than one model generation. Embedding models get swapped, rerankers improve, vector databases get replaced, and the team that cannot test a stage in isolation cannot upgrade it safely. Modularity is the difference between a pipeline and a pile.
Where it doesn’t. Modularity is overhead before it is insurance. Interfaces, contracts, per-stage evaluation, and independent deployment all cost engineering that a simple use case will never recoup. A FAQ bot over two hundred stable documents does not need swappable stages. It needs hybrid retrieval and a reranker, full stop.
The most production thing in this entire series. Every mature retrieval system is modular in practice, because everything else is unmaintainable. The survey’s contribution is vocabulary for what production teams already do.
How the seven compare
The seven patterns answer different control failures, and the easiest way to keep them apart is what each one decides.
These patterns stack in real systems rather than compete. A production assistant might route questions adaptively, correct weak retrievals, decompose hard ones agentically, and remember user context across sessions, all on modular infrastructure. The spec sheets below compress the differences.
- Fixes: weak retrievals reaching generation unchecked
- Slots: between retrieval and generation as a critique pass, with optional query rewrite and retry
- Costs: extra model passes per question, latency, and the training work if the paper's version is used
- Latency: one or more additional critique and retry passes in the worst case
- Reach for it when: wrong answers cost more than extra passes and retrieval quality varies by question
- Skip it when: volume is high, questions are simple, or latency is strict
- Fixes: bad or missing corpus evidence flowing straight into answers
- Slots: after retrieval as a document evaluator with drop-and-retry or web fallback paths
- Costs: an evaluator model, fallback search infrastructure, and source-quality policy for the fallback
- Latency: correction is a serial detour; fallback searches are the slow path
- Reach for it when: the corpus has known gaps and "not in our docs" is a normal case
- Skip it when: the corpus is complete for its scope or external search results cannot be trusted
- Fixes: one retrieval strategy and one price forced onto every question
- Slots: before everything, as a complexity classifier or rule set choosing the pipeline path
- Costs: classifier training or rule maintenance, plus a new silent failure mode in misrouting
- Latency: routing itself is cheap; the savings come from questions that avoid the expensive path
- Reach for it when: query load is high-volume and mixed in difficulty
- Skip it when: questions are uniform or the routing logic would be guesswork
- Fixes: questions needing decomposition, dynamic source selection, or iterative investigation
- Slots: as the orchestration layer itself, with retrieval demoted to one tool among several
- Costs: multiplied model calls, variable per-question spend, decision logging, traces, and stop conditions
- Latency: the slowest option in this group; ten calls where a pipeline makes two
- Reach for it when: the lookup sequence cannot be written in advance
- Skip it when: questions are bounded, cost must be predictable, or the team cannot observe agent decisions
- Fixes: multi-hop questions whose later queries cannot be written before earlier answers exist
- Slots: as the generation loop, alternating retrieval and reasoning steps
- Costs: compounding model calls, chain-length caps, and error amplification on early mistakes
- Latency: grows with chain length; unbounded without caps
- Reach for it when: questions have a fixed logical skeleton but discoverable entities
- Skip it when: questions are single-step or early-step errors cannot be tolerated
- Fixes: sessions that forget everything the user ever told them
- Slots: as a writeable store beside the read-only corpus, retrieved alongside it
- Costs: a write path, curation, expiry, privacy surface, and re-verification against systems of record
- Latency: small retrieval overhead; the real cost is operational, not per-query
- Reach for it when: relationships span sessions and corrections should persist
- Skip it when: questions are transactional or memory cannot be curated and audited
- Fixes: pipelines that cannot swap, test, or upgrade individual stages
- Slots: as the architecture underneath whichever other patterns the system runs
- Costs: interfaces, contracts, per-stage evaluation harnesses, and abstraction overhead
- Latency: neutral at runtime; the cost is engineering time
- Reach for it when: the system will outlive its current models and vendors
- Skip it when: the use case is small, stable, and unlikely to change
The “costs” field carries a theme across this group that the earlier groups did not share. Input-side patterns cost infrastructure. Control-side patterns cost observability: every decision the system makes for itself is one more thing the team must be able to reconstruct after the fact.
The failure this group still won’t fix
A system that checks its own work, plans its own searches, and remembers its own past can still produce a wrong answer, and now nobody can say why. The adaptive router sent the question down the cheap path. The corrective evaluator passed the evidence. The agent chose its tools and stopped when it was satisfied. Every decision was locally reasonable. The answer was wrong, and the post-mortem is a shrug, because nothing recorded the chain of decisions that produced it.
That is where retrieval engineering ends and agent operations begin. Decision records, traces, evaluation harnesses, and governance are their own discipline, and it is the one our agentic AI systems work is built around. The guide to RAG vs agentic AI draws the line between the two, and the posts on governing and evaluating agentic systems pick up exactly where this series leaves off.
Where the series ends
Four posts ago the problem was a retrieval pipeline that could not find the right chunk. The fixes since then have widened the pool, rebuilt the question, reached new sources, and finally taught the system to examine its own work. At each step the system became more capable and less predictable, which is the real arc of this series: every pattern that makes retrieval smarter makes it harder to debug, and the last group most of all.
The practical closing advice is the same as the opening advice was. Diagnose before you buy. A bad answer has a cause at a specific stage, and the expensive mistake is fixing the wrong one: tuning retrieval when the question is broken, rebuilding queries when the source is wrong, adding an agent when the corpus is stale. The map exists so that the meeting about “accuracy being off” ends with a stage, a pattern, and a cost rather than a vendor evaluation.
Working With Flytebit
At FLYTEBIT TECHNOLOGIES, RAG development is a structured engagement rather than a workshop and a tool licence.
The far end of this series is where our work starts. The control-side patterns are the ones we implement most cautiously, because a system that decides is a system that must be observed. The self-checkers earn their cost quickly in high-stakes corpora. Agentic retrieval earns it in investigative workloads and nowhere else, and the feasibility study is where that distinction gets made before the architecture hardens.
We run the same discipline in our own products. PASSR assembles its retrieval input from the diff, the changed symbols, and the review question rather than anything typed, which is query construction without a query. DOCKR regenerates documentation off predictable artifact changes, so its follow-up retrievals run closer to prefetch than search. TESTR treats the code under test as the system of record, because specification documents describe intent while the row-level truth is the implementation.
Ready to get started?
- Visit us at: flytebit.com
- Follow FLYTEBIT TECHNOLOGIES on LinkedIn for insights and updates
- to discuss your specific use cases
Related Reading
- Retrieval Patterns: From Naive RAG to Agentic Retrieval - the series intro: nineteen patterns in four families, and the failure each one fixes
- Better Retrieval: The Upgrades Every Production RAG Makes First - Post 1: hybrid search, two-stage reranking, and semantic caching on the retrieval stage itself
- Better Questions: When the Corpus Is Fine and the Question Is the Problem - Post 2: HyDE, branched retrieval, speculative prefetch, and SEAKR on the query side
- Different Sources: Not Every Answer Lives in Embedded Text - Post 3: SQL retrieval, API augmentation, GraphRAG, multimodal retrieval, and StreamingRAG on the source side
- RAG vs Agentic AI - the guide this series ends at: where retrieval stops and agency begins, and what the crossing costs
Key Takeaways
- Control-side patterns add decisions, not inputs. Every self-check, route, plan, and memory is a decision the system makes for itself, and each one is something the team must be able to reconstruct after the fact.
- Self-RAG’s instinct is production even when its training method is not. Few teams fine-tune reflection tokens; many run retrieve-grade-retry loops, which is the same idea in practical clothes. The grader can share the retriever’s blind spot, so exact-string discipline still matters.
- Corrective retrieval is the easiest retrofit in this group. An evaluator, a drop path, and a fallback give bad evidence somewhere to go. The fallback needs source-quality rules, or it becomes a spam intake pipe.
- Routing mistakes are silent quality failures. The router fits what the question sounds like, which is not always what the question needs, and the misrouted answer still sounds fluent.
- Agentic retrieval trades determinism for adaptability. It earns its cost when the lookup sequence cannot be written in advance, and the price is latency, variable spend, decision records, traces, and stop conditions.
- Interleaved reasoning amplifies whatever the first step gets wrong. IRCoT builds each lookup on the last answer, faithfully, in either direction.
- Memory is the one writeable source in the series. It needs curation, expiry, audit, and re-verification against systems of record, because a confident stale memory arrives with the authority of history.
- A system that thinks needs a record of what it thought. Without decision logs, every improvement in this post makes the failure harder to debug rather than easier.
The series intro:
Frequently Asked Questions
What is the difference between Self-RAG and corrective RAG?
Self-RAG trains the generating model to critique its own retrieval and output using reflection signals, so the judgment happens inside the model. Corrective RAG adds a separate evaluator that grades retrieved documents after the fact, drops weak ones, and can fall back to web search when the corpus comes up short. Self-RAG changes what the model is; corrective RAG changes what the pipeline does. Corrective RAG is easier to retrofit onto an existing system because it needs no custom training.
When should I use agentic RAG instead of a fixed retrieval pipeline?
Use agentic RAG when questions need decomposition, dynamic source selection, or iterative refinement: multi-part questions, investigations across systems, or workflows where the next lookup depends on what the last one found. A fixed pipeline wins when questions are bounded and similar to each other, because it is cheaper, faster, and far easier to debug. Agentic retrieval trades determinism for adaptability, so it needs decision records, traces, and a stop condition before it belongs in production.
What is IRCoT in retrieval-augmented generation?
IRCoT interleaves chain-of-thought reasoning with retrieval, so each reasoning step decides what the next lookup should be. Instead of retrieving once for the whole question, the system retrieves for the first inference, reasons over what it found, and uses that reasoning to form the next query. It fits multi-step questions where the second question cannot be written until the first is answered. The risk is compounding error: a wrong early inference sends every later retrieval in the wrong direction.
Is memory-augmented retrieval the same as a long context window?
No. A long context window holds what fits inside one session and forgets it afterward. Agent memory persists selected facts, preferences, and decisions across sessions and retrieves them when they become relevant again. Memory is writeable and durable, which is exactly why it needs curation: a wrong fact written to memory keeps answering long after the conversation that produced it ended.
Which self-checking retrieval pattern should I implement first?
Start with corrective retrieval, because it is a retrofit rather than a rebuild: an evaluator grades what came back, weak sources get dropped, and the system retries or falls back. Query routing is usually the second addition, because sending simple questions down a simple path cuts cost before it cuts quality. Reach for full agentic retrieval last. It is the most capable pattern in this group and the hardest to operate, and teams that adopt it first tend to debug the agent instead of the retrieval.
Ready to Transform Your Business with AI?
Let's discuss how Agentic AI and intelligent automation can help you achieve your goals.