How AI answers pick sources

What is retrieval-augmented generation (RAG), in simple terms?

Short answer

Retrieval-augmented generation (RAG) is a method where an AI system first retrieves relevant documents, such as web pages from a search index, and then writes its answer using them. It is how AI search features ground answers in current information and show citations. For marketers, it means a page must be found in the retrieval step before it can be quoted in the answer.

Updated

The steps

  • Retrieve: the system searches an index for passages related to the question.
  • Read: it passes the best passages to the language model.
  • Generate: the model writes an answer from them and, in search products, cites the sources.

What it means for your pages

  • Be in the index: crawlable, indexed and not blocked.
  • Be retrievable: use the words your buyers use, and answer the question in a self-contained passage.
  • Be quotable: state facts plainly, so a passage makes sense on its own.