What is RAG?

Also: Retrieval-augmented generation

Retrieval-augmented generation (RAG) is a technique where an AI system first retrieves relevant documents, for example from a search index, and then writes an answer based on them. It reduces reliance on training data and lets answers include current information and links to their sources.

How it works

A user question is turned into one or more search queries. The system retrieves matching passages, adds them to the model's input and asks the model to write an answer from them. The quality of the retrieved sources largely decides the quality of the answer.

Example

For "does Acme store data in the EU?", the system might retrieve Acme's security page and an independent review, then write its answer from those two passages. If Acme's page does not say clearly where data is stored, the review decides what the assistant says.

What it means for you

To be named, your content has to be retrievable and clearly relevant to the question. Pages that answer the exact question early and plainly are easier to retrieve and to quote.

Related terms

AI engines

All glossary terms

See what AI tells your buyers, first

Be the first to see whether AI recommends you or your competitors.

  • Early access: your free check comes first, on launch day
  • Six AI engines on every plan, no credits or seat fees
  • One email on launch day, nothing to pay now

We send you one confirmation email. After you confirm, we use your address only to tell you when Nodpick opens. You can withdraw at any time. Privacy policy · Contact us