Architecture

RAG (Retrieval-Augmented Generation)

Retrieval-augmented generation, commonly known as RAG, connects a language model to an external knowledge base at the point of generating a response, allowing the model to ground its outputs in current, specific and verifiable information.
DATE UPDATED: 11 Sep 2026
|
FIRST PUBLISHED: 22 Mar 2026
CONTENTS
RELATED GLOSSARY TERMS

What RAG does and why it matters

Large language models are trained on vast amounts of text, but that training has a cutoff date and contains no knowledge of your organisation, your clients, your documents or your internal processes. When you ask a standard language model a question that requires that kind of specific, current knowledge, it either confabulates an answer based on patterns in its training data or declines to answer.

RAG solves this problem by giving the model access to a knowledge base at the moment it generates a response. The system first retrieves the relevant documents, passages or data from the knowledge base, then provides those retrieved materials to the model as context for its response. The model generates an answer grounded in the retrieved information rather than in its training data alone.

The practical effect is that an AI system built with RAG can answer questions accurately about your specific contracts, your client history, your internal policies or your proprietary research, rather than producing generic responses based on publicly available information. It can also be kept current as the knowledge base is updated, without retraining the model.

RAG as an architecture decision

RAG is often described as a feature you add to an AI system. It is more accurately understood as an architectural decision that shapes the entire design of the system. The quality of a RAG system depends almost entirely on the quality of the knowledge base it retrieves from: how the information is structured, how it is indexed, how retrieval is triggered and what happens when the retrieved information is ambiguous or incomplete.
An AI system built on a poorly structured knowledge base will retrieve irrelevant information, produce unreliable outputs and, in the worst case, confidently assert things that are incorrect. An AI system built on a well-designed knowledge base, with careful attention to retrieval logic and quality standards, produces outputs that are specific, accurate and attributable.

This is why the data backbone is a design question that belongs in Blueprint, not a technical implementation detail that belongs in delivery.

What RAG is not

RAG is not fine-tuning. Fine-tuning modifies the model itself by training it further on specific data. RAG leaves the model unchanged and instead gives it access to an external knowledge source at inference time. The two approaches are sometimes combined but they address different problems.
RAG is also not a guarantee of accuracy. A RAG system retrieves information from a knowledge base and uses it to generate a response. If the knowledge base contains errors, outdated information or gaps, the system’s outputs will reflect those problems. The quality of the retrieval architecture and the knowledge base it draws from determines the reliability of the system.

Insight

For law firms and professional services organisations, RAG is the architecture that makes AI genuinely useful for knowledge-intensive work. The ability to retrieve accurately from a firm's own documents, precedents, client records and research materials, rather than from generic training data, is what makes the difference between an AI tool that produces plausible-sounding generalisations and one that produces specific, attributable, actionable outputs. Designing the knowledge base that RAG retrieves from, including what goes in it, how it is structured and how it is maintained, is one of the most consequential decisions in any professional services AI programme.

Misconceptions

RAG is not the same as giving an AI access to the internet. Internet access means the model can retrieve publicly available information in real time. RAG means the model retrieves from a specific, controlled knowledge base that the organisation has defined and maintains. RAG does not eliminate hallucination entirely. A RAG system can still produce inaccurate outputs if the retrieved information is itself inaccurate, if the retrieval logic surfaces the wrong documents, or if the model misinterprets the retrieved material. Good retrieval architecture reduces these risks significantly but does not eliminate them. RAG is not plug-and-play. The knowledge base it retrieves from requires careful design, ongoing maintenance and clear ownership. The retrieval logic requires tuning. RAG is an architecture, not a feature.

BACK TO GLOSSARY