· Retrieval
RAG
How an AI model answers from your documents: chunks, two kinds of search, reranking.
Research · Retrieval · Agents
Updated
Agentic RAG puts an AI agent in charge of retrieval. Instead of one search and one answer, the agent plans the task, chooses which sources and tools to use, checks whether what it found is enough, and tries again if not. Colidal builds agentic RAG for questions that take several steps to answer.
plan = on · tools = chosen per task · check = before answering
Agentic RAG is retrieval-augmented generation in which an AI agent decides what to retrieve, from which source, and whether the results are good enough, repeating the search until they are. How it works Ordinary RAG runs once: search, then answer. An agent treats retrieval as a tool it can use as many times, and in as many places, as the task needs. The loop Reads the task and plans. It breaks the task into steps and decides what it needs to know. It can also read memory of earlier turns. Selects tools and sources. A vector database, a knowledge graph, web search, one of your systems through an API, or an MCP tool. Reads the results. Each tool returns what it found, and the agent adds it to what it knows. Checks: is this sufficient? If something is missing or contradictory, it refines the plan and searches again. Synthesizes the answer. Once the results are sufficient, the model writes the answer with its sources. Example Task: "Compare this quarter's returns with our policy and draft a reply to the retailer." The agent needs a document and a live system, and notices on its own that the first search was not enough. Example The parts The model is one part. The rest decides whether it can be trusted with real work. agent An LLM that reasons about the task, decides the next action, and reassesses after every result. tools Each tool has a description that tells the agent when to call it. Retrieval is one tool among several. memory Earlier turns and earlier results, so a follow-up question does not start from zero. check A step that asks whether the evidence answers the question, before anything is written. Inside the loop The loop is simple to draw and easy to get wrong. These are the details that decide whether it holds up. reasoning The agent writes what it needs, names a tool and its input, then reads the result. That cycle repeats until it can give a final answer. routing Each tool carries a description of when to use it. The agent picks a tool by reading them, so a vague description means a wrong choice. no retrieval A question the model can answer directly should skip retrieval. Searching for everything wastes time and adds noise. structure Tool calls are emitted in a strict format, not prose. A malformed call has to be caught and retried, never acted on. determinism Low randomness and clear stopping points keep the agent from writing a tool result it never received. scratchpad Every thought, call, and result so far is carried into the next step, alongside the question and the conversation. knowledge An agent cannot retrieve what the knowledge base does not hold. Scope and freshness set the ceiling. multi-agent A large task can be split among agents that each have their own tools, with one coordinating the rest. Fit Compare They are not rivals. Most systems start with RAG, and add a graph or an agent only where the questions need one. How Colidal builds it Colidal builds agentic RAG inside a custom AI harness: the tools the agent may call, the context it gets, the guardrails, the tests, and the logs. The agent is only as free as its measured results allow. Used in: Repeat questions · Approvals · Connect to AI · colidal/harnessA loop, not a line.
What the agent does
One task, start to finish
What an agentic RAG system is made of.
The planner
The things it can use
What it remembers
The result check
How an agent decides what to do next.
Thought, action, observation
Descriptions do the routing
Knowing when not to search
Actions as structured data
Settings that reduce invention
A working record
Only as good as its sources
Several agents, one task
When agentic RAG fits, and when it doesn't.
Use it when
Skip it when
RAG, GraphRAG, or agentic RAG?
RAG GraphRAG Agentic RAG What it retrieves Passages that match the question Connected facts, and summaries of whole topics Whatever the agent decides the task needs A question it suits What does the returns policy say about opened items? Which suppliers are linked to the late orders this year? Compare this month's returns with the policy and draft a reply. Built before any question Chunks, embeddings, a keyword index All of that, plus a knowledge graph and community summaries Nothing new: it uses the other indexes as tools Cost to set up Lowest Highest: an LLM reads every chunk Medium: tools, checks, and tests Cost per answer Lowest: one search, one model call Low for specific questions, higher for broad ones Highest: several model calls per task How it shows its work The passage and page it used The path it followed through the graph Every step, tool call, and source Start here when The answer is written down in one place The answer is spread across many connected documents The answer takes several steps or several systems An agent inside a harness, at a level you set.
FAQ
Agentic RAG is retrieval-augmented generation in which an AI agent decides what to look up, where, and whether it has found enough, before it answers.
Ordinary RAG searches once and answers. Agentic RAG plans, can search several sources several times, and checks its results before answering.
Yes, per answer. Each plan, tool call, and check is another model call. It earns that cost on tasks one search cannot answer.
Yes. A knowledge graph is one of the tools an agent can call, alongside passage search, web search, and your own systems.
Keep reading
· Retrieval
How an AI model answers from your documents: chunks, two kinds of search, reranking.
· Retrieval · Graphs
How a knowledge graph lets AI answer questions that span many documents.
· Retrieval · Chunking
How an AI model decides where to cut a document so each passage keeps its meaning.
Next step
Tell us what you need. We reply within one business day with times for a call, and you'll get a short agenda before we talk.
Request a call
Thirty minutes, by video. No preparation needed.
Get times and a short agenda
Within one business day, so the call is spent on your problem.
Leave with a next step
Usually Colidal AI Assessment, or an honest "AI isn't the answer here".