No. 139·noun·also called retrieval-augmented generation, retrieval augmented generation, chat with your documents

RAG

Making an AI answer from your own documents by looking up the relevant passages first and handing them to the model with the question.

SPECIMEN · DIAGRAM · FLOW
PersonQuestion
DataYour documentsfind relevant passages
ServiceModelreads passages and question
AppAnswerwith sources
look uppassageswrites
Definition

What it is

RAG (retrieval-augmented generation) is a way to make an AI model answer using your content. When someone asks a question, the app first searches your documents for the most relevant passages. It then gives those passages to the model along with the question, and the model writes an answer from them.

You use it when a chatbot should know your help articles, policies, product catalog or contracts. The model was never trained on those, and pasting everything into every prompt does not fit. RAG finds the few pieces that matter for each question. It can also show which passages it used, so people can check the answer.

It lowers the chance of made-up answers but does not remove it. If the search pulls the wrong passages, the answer will be wrong with confidence. Your documents also need to be kept up to date.

RAG is not training or fine-tuning the model. The model stays the same, and only what it reads for each question changes.

Say it like a builder

How to ask for it

Vague

“I want the chatbot to know about our company docs so it stops making stuff up.”

Precise

“Build the support chatbot with RAG over the PDFs in our help-center folder. For each question, retrieve the most relevant passages, answer only from them, show the source document names, and say "I don't know" when nothing relevant is found.”

Why it works

"Know about our docs" could mean retraining a model or pasting everything into the prompt; "RAG" names the look-up-then-answer approach, and the prompt sets the sources and the no-match behavior.

In the wild

You've seen this in

  • CA support widget that answers from a company's help center and links the articles it used
  • C"Chat with your PDF" features that quote the page the answer came from
  • YA Notion or Slack assistant that answers questions from your workspace content
Usage note

Often confused with