Data & AI glossary

RAG

A technique that consists of searching a knowledge base for relevant documents, then supplying them to a language model so that it answers based on them.

IN PRACTICE

Answering with documents to hand.

RAG stands for “retrieval-augmented generation”. A language model does not know your internal documents. So they are split into passages and indexed (often with embeddings), and for each question the closest passages are retrieved. The model answers from them and cites its sources.

Example: an investment fund wants to find what has been written about a company in several years of internal notes. The assistant answers by pointing to the relevant notes.

Two traps. RAG is poorly suited to figures: for revenue, the model must call a tested metric in the warehouse, not search through PDF reports. And the answer is only as good as the documents: if they are outdated or contradictory, the answers are too. RAG reduces hallucinations, it does not eliminate them.

WHAT COMES NEXT, WE BUILD TOGETHER

Your next project
starts with a conversation.

An idea, a pain point, a project to kick off? Let’s talk about what would make a difference for your teams.

Let’s talk about your project