RAG Explained: How a Model Answers From Your Documents

Business Pill 27 · Answering from your own documents

RAG lets a model answer from your own documents without retraining it: look up the right pages first, then hand them to the model with the question.

A short explainer video. The numbers in it are round numbers for illustration.

The Short Answer

A model knows only what it was trained on. It has never seen your contracts, your manuals, or last week’s prices. Ask about them and it either refuses or guesses.

The fix is simple: before the model answers, look up the relevant pages, then hand them to the model together with the question.

Three Steps

First, retrieve: search your documents for the passages closest to the question. Second, augment: add those passages to the request. Third, generate: the model writes its answer using what it was just given.

An Example

An employee asks, how many days of leave do I get for a new child? The system finds the right page of the staff handbook, the model reads it, and answers with the exact number.

That is retrieval-augmented generation, usually shortened to RAG.

Why It Is Popular, and Its Weak Point

It is popular for good reasons. The knowledge stays current, because you update the documents, not the model. The answer can show its sources. And private information stays in your own systems.

But it has one weak point: the answer is only as good as what was retrieved. If the search brings back the wrong page, the model answers confidently from the wrong page.

Three Questions to Ask

  1. Are the right documents in the system?
  2. Does the search find the right passage?
  3. Can we see which source each answer used?

See It in the News

Cloudflare Web Search API Prices $0.25 to $7.00. A news piece on a service that hands live web results to a model before it answers.

TextQL Ontology GA: Context, Not Capability. A news piece on giving a model the context of a business’s own data.

How This Concept Connects

Layer 3 of 8 · Inference & Context, on the Business Engineer Concept Map

  • Fine-Tuning contrasts with RAG. Fine-tuning shifts the model’s settings on your examples; RAG leaves the model unchanged and hands it the right documents per request.
  • RAG constrains AI Hallucination. Giving the model the source documents and asking it to cite them is the first way the hallucination lesson names to reduce it.
  • RAG builds on Knowledge Cutoff. RAG starts from the fact that a model knows only its training data; looking up pages hands it what it never saw.
  • RAG is an example of Context Engineering. RAG puts retrieved passages in front of the model, one way of deciding what a model sees before it answers.
  • RAG builds on Embeddings. RAG’s retrieve step searches documents for passages closest to the question, the search-by-meaning that embeddings power.
Business Engineer framework
The Harness Theory
Retrieval is a harness component around the model.
See all 141 concepts on one map
Get the full Concept Map as a free poster.
Get the map

More Business Pills

Scroll to Top
FourWeekMBA