Frozen knowledge
A model knows nothing of what happened after its training or of what was never public: your prices, your procedures, your contracts, your decisions.
RAG (Retrieval-Augmented Generation) lets an AI look for information in your documents before answering. Definition, how it works step by step, differences with fine-tuning, examples and limits: the essentials for understanding and using RAG.
RAG (short for Retrieval-Augmented Generation, also called search-augmented generation) is a method that combines two steps: retrieving the useful passages in a set of documents, then generating an answer with a language model (LLM) from those passages.
In practice, when you ask a question, the system doesn’t settle for what the model learned during training: it first searches your knowledge base for the relevant extracts, adds them to the request, and the model writes its answer based on them. The answer can then cite its sources.
The term was popularised by a 2020 paper from Facebook AI Research (Lewis et al.). Today it refers to the most widespread architecture for connecting generative AI to a company’s data.
ChatGPT, Claude, Gemini or Mistral can write and reason, but their knowledge stops at their training data. RAG fills three gaps.
A model knows nothing of what happened after its training or of what was never public: your prices, your procedures, your contracts, your decisions.
Without a source, there is no way to know where a claim comes from. With RAG, the answer points to the passages that fed it.
When information is missing, a model may fill the gap with a plausible but false answer. Providing the right context reduces this risk, without removing it.
The first three steps happen once, when documents are imported. The next three repeat with every question.
Documents are read: file text, web pages, transcripts of videos and audio files.
The text is split into pieces (chunks) that keep their reference to the original document.
An embedding model translates the meaning of each passage into a numerical vector, stored in a vector database.
For each question, the system compares the question with the index and selects the closest passages, even without the same words.
The selected passages are added to the question, with instructions: answer from the sources, say when information is missing.
The LLM writes the answer from this context and shows the documents used, so you can check.
RAG combines a search engine and a language model. A few concepts are enough to understand what happens under the hood and ask a provider the right questions.
Two sentences with similar meanings have similar vectors, even with different words.
It finds the passages closest to a question in a few milliseconds.
Too small, it loses context; too large, it drowns the useful information.
Combines vector search with exact-word search, useful for references and codes.
This is what the model actually receives when it answers.
Three ways to make an LLM work on knowledge it doesn’t have. They are often combined: fine-tuning shapes how it answers, RAG brings the facts.
Knowledge stays in your documents; the model consults them for each question.
The model’s parameters are adjusted on examples to change its behaviour.
Whole documents are sent to the model with each question.
For a company knowledge base that evolves and whose answers must be verifiable, RAG is usually the starting point.
RAG is not a single technology. Depending on the need, you search for passages, structure knowledge upstream or protect data before processing. All three approaches are available in Narratheque, at the same price per knowledge base.
“I want to find the right information in my documents.”
The classic form: search for the passages closest to the question, then generate.
“I want to connect scattered information.”
The AI organises the content upstream into linked, summarised pages; search relies on this structured knowledge.
“I want to limit the exposure of sensitive data.”
Supported identifying information is replaced or encrypted before being sent to the model.
Teams query procedures, agreements and internal guides, and get an answer with the reference document.
Internal assistantVisitors ask their questions; the chatbot answers from a dedicated public body of content: offers, FAQs, site pages.
Website chatbotConsistent answers on products, warranties and returns, based on documentation and validated by the team.
Customer serviceWrite from your positioning, your customer cases and your existing content rather than generalities.
Content & campaignsMake the knowledge of a firm, a technical department or a quality team searchable, with references.
Knowledge wikiAgents that rely on a knowledge base to carry out a business task with the right context.
AI agentsMost disappointments come from the sources and governance, not the technology.
RAG repeats what it finds. Outdated or contradictory documents produce outdated or contradictory answers.
A passage cut in the wrong place loses its meaning. Preparing the documents matters as much as the model.
RAG doesn’t manage permissions for you: a knowledge base should contain what its audience is allowed to see.
RAG reduces fabrications, it doesn’t eliminate them. Answers with consequences are checked against the cited sources.
With an external model, the selected extracts are sent to it to produce the answer. Choose models according to sensitivity.
Add, remove, update: a knowledge base lives with the organisation.
Where the knowledge base is stored and where the model processes it are two separate questions. Check where the extracts sent go, the provider’s reuse terms, and protect identifying information before processing when necessary.
Understand the data journeyBuilding RAG yourself means choosing an embedding model, a vector database and a splitting strategy, and managing access rights. With Narratheque, you import your documents, web pages, videos or audio files: indexing is done for you, and you choose the model (OpenAI, Anthropic, Google, Mistral or local models) that answers.
A knowledge base starts at €29 excl. VAT per month (Simple plan: 1 knowledge base, 2 users, usage budget included).
Two ways of giving AI context, with diagrams and a concrete example.
How to create and secure the knowledge base that feeds RAG.
Choose the model that generates the answer, depending on the task.
What to mask before sending extracts to a model.
The research paper that coined the term RAG.
RAG (Retrieval-Augmented Generation) is a method that makes AI search for the useful passages in a set of documents before generating its answer. The model thus relies on your sources and can cite them, instead of being limited to its training data.
RAG stands for Retrieval-Augmented Generation. The term was popularised by a 2020 paper from Facebook AI Research.
Fine-tuning retrains the model to change its behaviour; RAG gives it documents at the moment of answering, without retraining it. RAG suits information that changes and must be sourced; fine-tuning suits a very specific style or task.
No. It reduces them by providing the right context, but an answer can still be incomplete or wrong if the search misses a passage or the sources are poor. Important information is checked in the cited documents.
Any content from which text can be extracted: files, web pages, transcripts of videos and audio files, notes. Quality matters more than quantity: remove duplicates and obsolete versions.
To build RAG yourself, yes: you have to assemble an embedding model, a vector database and an LLM. A platform like Narratheque does it for you: you import your documents and ask your questions.
It is possible with precautions: separate knowledge bases by audience, choose models according to sensitivity, and protect identifying information before processing. With an external model, the selected extracts are sent to it to produce the answer.
A custom-built RAG requires development time plus infrastructure and API costs. With Narratheque, a knowledge base usable with RAG starts at €29 excl. VAT per month, with a 14-day free trial.
Let’s start from a real body of content and a few real questions to see what RAG can do for your organisation.