---
title: "RAG"
description: "An approach in which an AI system retrieves relevant material and uses it as context when generating an answer."
category: "AI and tooling"
canonical: "https://contentlexicon.com/rag"
updated: "2026-10-07"
---

# RAG

_AI and tooling_

> An approach in which an AI system retrieves relevant material and uses it as context when generating an answer.

RAG stands for retrieval-augmented generation. Instead of relying only on the model's training data or general memory, a RAG system retrieves passages that appear relevant, adds them to the [prompt](https://contentlexicon.com/prompt) and asks the model to answer from those.

In practice, this is how many "ask our docs" tools, internal assistants and [website](https://contentlexicon.com/website) chatbots work. The value isn't that the model becomes magically trustworthy. It's that the model is at least trying to answer from the right shelf.

## Why it matters for content

RAG turns content quality into part of AI quality. If source material is current, structured, well-labelled and deduplicated, answers tend to improve. If the source material is contradictory, out of date or badly organised, the system can retrieve the wrong thing very efficiently. That makes [content operations](https://contentlexicon.com/content-operations) central to whether a RAG system works.

RAG has two distinct stages: finding material and writing from it. Source documents are usually split into chunks and indexed; when someone asks a question, the system finds chunks that appear relevant and puts them in front of the model. Headings, self-contained sections and enough context to identify what a passage refers to all affect what gets found. A perfectly written answer can't rescue a poor retrieval result.

It's most useful where an organisation has a body of material people need answers from: policies, service information, product documentation, guidance, research, support content or internal know-how. And it earns its keep where answers need to reflect current organisational knowledge rather than generic web knowledge.

## How RAG changes the picture

What changes for [content teams](https://contentlexicon.com/content-team) isn't only the tooling but the level of consequence. Duplicates, stale information, weak [metadata](https://contentlexicon.com/metadata) and ambiguous ownership stop being tidy-up issues and can affect the answers the system gives. RAG creates a practical reason to care about governance, retirement and single sources of truth, because the model works from the material retrieved, which may not be the source you intended.

Take a college that uploads this year's fees [PDF](https://contentlexicon.com/pdf) to its assistant's index and leaves last year's in place. A prospective student asks what the course costs. Without a rule favouring approved, current versions, retrieval may surface the old document, and the assistant may quote it fluently, with a citation that makes it look checked. The old PDF was never taken down.

## Questions people ask

**What's the difference between RAG and a chatbot?**

A chatbot is an interface. RAG is one way of giving that chatbot access to source material before it answers.

**Does RAG stop hallucinations?**

It can reduce them, but it doesn't remove them. A model can still misunderstand, overstate or combine information badly. RAG improves the chances of grounding an answer; it doesn't guarantee truth.

**Do we need perfect content before using RAG?**

You don't need perfect content, but you do need to know what mess you're feeding it. RAG often reveals content problems that were already there: duplicates, stale information, contradictory guidance and missing metadata.

**Is RAG only for technical teams?**

Technical teams build the system, but content teams often decide whether the source material is clear, current and structured enough to retrieve from sensibly.

## Learn more

- [Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks](https://arxiv.org/abs/2005.11401) – the original 2020 paper that introduced the term.
- [Retrieval-Augmented Generation for Large Language Models: A Survey](https://arxiv.org/abs/2312.10997) – a map of the research since, including retrieval and evaluation challenges.
- [A practical guide to RAG](https://www.comet.com/site/blog/retrieval-augmented-generation/) – Comet's technical guide to indexing, chunking, hybrid retrieval and evaluation; its later sections demonstrate Comet's Opik tool.

Related terms: [Context window](https://contentlexicon.com/context-window), [GEO](https://contentlexicon.com/geo), [Hallucination](https://contentlexicon.com/hallucination), [Knowledge base](https://contentlexicon.com/knowledge-base), [Knowledge graph](https://contentlexicon.com/knowledge-graph), [LLM](https://contentlexicon.com/llm), [Single source of truth](https://contentlexicon.com/single-source-of-truth), [Structured content](https://contentlexicon.com/structured-content)

Also called: Retrieval-augmented generation

This page was last reviewed in October 2026.
