---
title: "What is RAG? An AI that answers using your documents."
url: https://www.bonbay.fr/en/ia/comprendre-ia/lexique-ia/rag/
site: "Bonbay IA"
description: "RAG has a language model answer from your own documents, with sources cited. Definition, business use and confusions to avoid."
updated: 2026-11-13
---

# What is RAG? An AI that answers using your documents.

> RAG, short for retrieval-augmented generation, is a two-step technique. The system first searches a document base for the passages relevant to the question. It then passes them to the language model, which writes its answer from those passages and can cite the source.

RAG connects a language model to a document base so that it answers from specific texts.

## En bref

- **Search, then write** The answer draws on extracts retrieved on the spot, not on the model’s memory.
- **Verifiable sources** Each answer can point back to the source document, which makes checking easier.

## In practice in a business

It's the basis of most internal assistants: questions about procedures, contracts, technical documentation. When a document changes, you replace it in the knowledge base, without touching the model.

## Not to be confused with

RAG is not fine-tuning: the model is not retrained, it consults. Nor is it a simple keyword search, because passages are retrieved by meaning.

## Questions fréquentes

### Does RAG eliminate hallucinations?

It reduces them when the answer is in the documents. If the information is missing, the model can still get it wrong.

### Which documents should go in?

PDFs, office files, web pages, records from your software. Their quality and organisation matter a great deal.

### Do my documents leave the company?

It depends on the hosting chosen. The question is settled at the design stage, before any sensitive data goes in.
