Skip to content
AI search and crawlers

What is retrieval-augmented generation (RAG)?

3 min read · Updated · By the Reveata team

Short answerRetrieval-augmented generation (RAG) is a technique in which an AI system first retrieves relevant documents, for example from a search index or a company knowledge base, and then gives them to a language model so it can write an answer grounded in that text, often with citations.

A language model on its own only knows what was in its training data, which stops at some date and may be wrong about your business. RAG is the fix most AI search products use: look first, then write. When an assistant answers with a list of sources, retrieval is almost always behind it.

How RAG works, step by step

  1. The question comes in. A person asks, say, "Which analytics tools show revenue by traffic source?"
  2. Retrieve. The system searches a collection of documents for passages likely to help. On the open web that collection is a search index built by crawlers; inside a company it may be internal documents.
  3. Augment. The best passages are added to the model's input alongside the question.
  4. Generate. The model writes an answer using those passages, and the interface can show which sources were used.

The same pattern sits behind "grounding", the word Google uses for connecting a model's answers to fresh sources.

Why RAG matters to website owners

RAG decides which pages an assistant can quote. Your page can only be retrieved if:

  • It is in the index. That depends on search crawlers such as OAI-SearchBot, Claude-SearchBot and PerplexityBot being allowed to read it, or on a live fetch by agents like ChatGPT-User when someone asks.
  • It answers the question in clear text. Retrieval works on passages. A page that states plainly what you do, for whom and at what price gives the retriever something to pick up.
  • It is current. An outdated page that gets retrieved is an outdated answer.

Training crawlers such as GPTBot matter less here. Training shapes what a model knows in general; retrieval decides what it reads for a specific answer. That is why many sites allow search and answer crawlers while refusing training ones. See AI crawler.

Seeing retrieval from your side

You cannot watch an assistant's retrieval system directly, but you can see its effects in three places in Reveata:

What you see Where
Search and answer bots reading your pages Bot traffic, once you forward crawler requests from your server
People clicking through from an answer The AI assistants channel, with the pages they land on and what they spend

Put together, they show the chain from page read, to page cited, to visitor, to revenue. The AI citations page explains the middle step.

Common misunderstandings

  • "RAG means the model learns my page." It does not. Retrieved text is used for one answer; it does not change the model's weights.
  • "Blocking training crawlers keeps me out of AI answers." Retrieval usually relies on separate search and answer bots, which you control separately.
  • "Cited means visited." Many people read the answer and never click. Citations and visits are different numbers.

Frequently asked questions

Is RAG the same as fine-tuning?

No. Fine-tuning changes a model by training it further. RAG leaves the model as it is and gives it relevant documents at the moment of each question.

Does every AI assistant use RAG?

Assistants with web search or browsing retrieve sources before answering; an answer given without search comes from training data alone. Products differ, and they often decide per question whether to search.

How can I make my pages easier to retrieve?

Let search and answer crawlers in through robots.txt, keep key facts in plain text near the top of the page, and keep the pages that matter linked from the rest of your site.

See it with your own numbersReveata ties every visit and sale to the source that brought it. Add your website in a minute.
Get started
Was this page useful?
GlossaryWhat is AI search?AI search is a way of searching in which an AI model reads sources for you and writes a direct answer, usually with links to the pages it used, as in ChatGPT search, Perplexity, Google's AI Overviews and AI Mode, or Microsoft Copilot.GlossaryWhat are AI citations?AI citations are the links to source pages that an AI assistant or AI search engine shows alongside its answer to indicate where the information came from, such as the numbered references in Perplexity or the source links in ChatGPT search.GlossaryWhat is an AI crawler?An AI crawler is an automated program run by an AI company, such as OpenAI, Anthropic or Perplexity, that fetches web pages to train language models, to build an AI search index, or to read a page live because a person asked an assistant about it.GlossaryWhat are Google AI Overviews?AI Overviews are AI-generated summaries that Google Search shows above or among the regular results for some queries, written from several web pages and linking to them as sources.GlossaryWhat is a web crawler?A web crawler, also called a spider or bot, is a program that automatically fetches web pages, follows the links it finds and stores what it reads, usually to build a search engine index, an archive or a dataset.GlossaryWhat is an AI browsing agent?An AI browsing agent is software driven by an AI model that opens web pages for a specific person, reads them and sometimes acts on them, for example comparing products or filling in a form, instead of the person browsing themselves.