Retrieval-Augmented Generation

RAG Agents: Answers Grounded in What You Actually Have on File

A model on its own answers from general training, which is a problem the moment a question is specific to your business. RAG changes what the model sees before it answers — your actual documents, not just what it learned during training.

The Mechanism

Two Steps, Not One Model Guessing

"RAG" sounds like a single trick. It is really two separate steps working together, and most of the engineering effort sits in the first one.

1. Retrieval

Before the model writes anything, the system searches your connected documents and pulls back the specific passages most relevant to the question being asked — not the whole document library, just the pieces that matter for this one request.

2. Generation

Those retrieved passages are handed to the model alongside the question, and it answers from that material rather than from memory alone. The answer is grounded in something you can point to, not invented from a general sense of the topic.

What We Evaluate

What Actually Decides Whether Retrieval Works

This is an evolving area of engineering practice, and we treat it that way — not by promising one fixed technique, but by evaluating each of these against your actual content before committing to an approach.

Source Selection & Freshness

Which documents are actually authoritative, how often they change, and how the index gets updated when they do. Retrieval from a stale copy is worse than no retrieval at all.

Chunking & Structure

How a document gets split into retrievable pieces changes what the model sees. A policy document, a spreadsheet and a support ticket history each need a different approach, decided against your actual content, not a default.

Traceability

Whether an answer can be traced back to the source passage it came from. That traceability is what makes a wrong retrieval easy to catch, instead of a plausible-sounding answer nobody questions.

Be Honest About the Limits

What RAG Doesn't Fix

If the source documents are wrong or out of date, a grounded answer just repeats the mistake with more confidence.

Retrieval can pull the wrong passage on an ambiguous question, especially across documents that use similar language for different things.

It does not decide who should see what — permissions and access scoping are a separate, deliberate design step, not a side effect of retrieval.

Grounding an answer isn't the same as deciding whether to act on it — that is a separate layer, built with its own escalation rules.

From Answering to Acting

Retrieval Is an Input, Not the Whole Agent

A RAG setup on its own still only answers a question — that's a well-grounded chatbot, not an agent. What makes it an agent is pairing the retrieved information with the ability to take the next step: update a record, draft a reply for approval, or file something in the right place, using tools the agent is allowed to call.

See tool-using and MCP agents for how that action layer works, and AI agent development for the full picture of how we build the two together.

See a Grounded Support Agent
An AI agent retrieving a source document before answering a question
Not the Same Page

RAG Agents vs. Knowledge Base Agents

Same underlying idea, two different starting points depending on what you already know you want.

This Page

RAG, the Technique

How retrieval and generation actually work together, and what we evaluate when designing it — useful if you want to understand the mechanism before you commit to it.

Knowledge Base Agents

Pointed at Your Company Docs

The applied version — an agent built specifically around your internal wiki, help centre or documentation, described in product terms rather than technique. Start there if you already know what you want built.

Frequently Asked

Questions About RAG

Does RAG mean the agent has read our whole business?

No. It has access to whatever sources you connect and index for it, and only within the permissions you grant — the same access boundaries as any other agent we build. Nothing is retrievable that was not explicitly connected.

How is this different from just uploading files to a chatbot tool?

A file upload window is retrieval without much engineering around it — no control over how documents are split, how stale content is handled, or how a wrong retrieval gets caught. We design the retrieval step deliberately, and where relevant we pair it with the ability to act, not just answer. See knowledge base agents for the applied version of this.

Can RAG completely stop incorrect answers?

No, and it would be dishonest to claim it does. Grounding answers in real documents reduces the chance of an invented answer considerably, but the agent can still retrieve the wrong passage or misread an ambiguous one. That is exactly why testing against real cases and clear escalation rules matter as much as the retrieval design itself.

Do we need a special database for this to work?

Not necessarily a new one. The right retrieval setup depends on how much content you have, how it is structured today, and how often it changes — we work that out during scoping rather than assuming one approach fits every client.

Is RAG the same thing as fine-tuning a model on our data?

No, and the two solve different problems. Fine-tuning changes how a model behaves in general; RAG hands the model your current documents at the moment it needs to answer, so updates to the source material show up immediately without retraining anything.

Tell Us What Your Documents Actually Look Like

Bring the messy real version — scattered docs, a half-updated wiki, an inbox full of past decisions. We'll tell you plainly what retrieval on top of it would take.