Glossary

Retrieval-augmented generation (RAG)

Definition

Retrieval-augmented generation (RAG) is a technique in which an AI system first retrieves relevant information from a set of sources and then gives that information to the model to generate its answer. It grounds answers in your own data without retraining the model.

What it is

A language model only knows what was in its training data. Retrieval-augmented generation, or RAG, adds a lookup step. Before answering, the system searches your documents or systems for relevant passages and passes them to the model as context. The model then answers based on that material.

How it works

  • Prepare: documents are split into pieces and indexed, often as vectors that capture meaning.
  • Retrieve: a question is matched against the index to find the most relevant pieces.
  • Generate: the model receives the question plus those pieces and writes the answer, ideally with references to its sources.

RAG can also retrieve through tools, for example an agent calling an MCP server to search a live system.

Why it matters for your organisation

RAG is how many AI assistants get access to company knowledge. That makes two questions important:

  • Who may retrieve what? If the index ignores permissions, a user can get answers built from documents they were never allowed to open.
  • What goes to the model? Retrieved passages are sent to the model, including any secrets or sensitive fields they contain.

Quality also depends on structure. Text similarity finds related passages, but not always the right relationships. An enterprise knowledge graph can add that structure.

How Trendium helps

When retrieval runs through the ContextGuard® Control Layer, requests are checked against the user’s permissions and data rules filter secrets and sensitive fields before they reach the model. See also data leakage.

Questions

Is RAG the same as training a model on my data?

No. With RAG the model is not changed. Your data is looked up at the moment of the question and passed to the model as context.

Does RAG stop AI from making things up?

It reduces the risk by grounding answers in sources, but it does not remove it. Answers with references are easier to check.

Talk to us →