What Is RAG? Retrieval-Augmented Generation Explained
DICTIONARY · AI

What Is RAG?

RAG, retrieval-augmented generation, is retrieving relevant material from your own sources and giving it to a model to answer from.

In plain English

The pipeline is straightforward: turn the question into a search, retrieve the most relevant passages, put them into the prompt, and ask the model to answer from them.

It is the standard way to make AI useful over a body of knowledge it was never trained on: your documentation, your policies, your past work.

What to know

Index
Documents are split into passages and stored with embeddings.
Retrieve
The question is matched against the index to find relevant passages.
Augment
Those passages are inserted into the prompt.
Generate
The model answers from the supplied material, ideally with citations.

Why it matters

RAG is almost always the right first answer to make AI know about my business. It is cheaper than fine-tuning, updates the moment the source updates, and can cite where an answer came from, which fine-tuning cannot.

Common mistakes

×Fine-tuning to add knowledge when retrieval was the correct tool.
×Poor chunking, so retrieved passages lack the context to make sense.
×No citations, so answers cannot be checked.
×Indexing an out-of-date document set and trusting the answers.

FAQs

RAG or fine-tuning?

RAG for knowledge, fine-tuning for behaviour and format. They solve different problems.

Why are my answers still wrong?

Usually retrieval, not the model. Check what passages were actually returned.

WRITTEN BY TARIQ SALLAM
Marketing Consultant. Entrepreneur. Content Creator.

I'm a marketing consultant, entrepreneur and content creator. I help businesses grow through practical marketing, websites, SEO, content and AI.

More About Tariq →