What Is RAG? How AI Decides Which Pages to Quote

Retrieval augmented generation is how an AI answer gets its sources. Understanding retrieval explains most of why you are quoted or ignored.

Abstract violet and magenta light filaments on a dark background, the AxiomAI brand motif

TopicHow AI Reads the Web

Retrieval augmented generation is the pattern where a model fetches documents before it answers, then writes using what it fetched. It matters because the retrieval step, not the writing step, decides whether you are in the answer. If your page is not retrieved, nothing about your prose can save you.

The two stages, and which one you can influence

Stage one is retrieval, the system turns the question into a query, searches an index, and pulls back a handful of candidate passages. Stage two is generation, the model writes an answer using those passages and usually attributes them. Almost everything within your control sits in stage one. Being crawlable and indexable is the entry requirement, which is why Google says the fundamentals that make a page eligible for Search apply to its AI features too Google, AI features and your website.

Retrieval works on passages, not pages

A retrieval system does not fetch your whole article. It fetches a chunk. That single fact explains most GEO advice that otherwise sounds arbitrary

  • An answer buried in paragraph nine is in a chunk that does not look like an answer to the question
  • A heading that states the question makes the chunk beneath it obviously relevant
  • A self-contained paragraph survives being lifted out of context, and a paragraph starting "as we saw above" does not

See how to structure content for retrieval for the practical version.

Why the same question gives different sources

Retrieval is not deterministic, and the candidate set can differ between runs. That is why an AI rank does not exist and why measurement has to be sampling. It is also why a single check telling you that you are absent proves very little.

Where retrieval usually fails you

In practice four things keep good pages out of the candidate set, and none of them are exotic.

How strong is your own AI marketing? Take the free two minute scorecard and get an honest read plus the next steps that matter most.

Take the scorecard
  • The page answers a different question than it appears to. A guide titled for a broad topic, whose body answers a narrow one, matches neither query well.
  • The answer is distributed. Where the response to a question is assembled across six paragraphs, no single chunk contains it, so no single chunk wins.
  • The page is not fetchable in the first place. Retrieval cannot rank what it cannot reach, which is why the technical layer sits underneath all of this.
  • Somebody else states it more plainly. Retrieval favours the clearest statement of a fact, not the most thorough treatment of a subject.

That last one is the uncomfortable finding for anyone who has invested in long-form. Depth wins the reader who arrives. Clarity wins the retrieval that sends them.

How to test your own retrievability

Take a question you want to be the answer to. Ask it of an engine that shows sources, several times across several days, and record who gets cited. Then read the winning page and ask what its chunk had that yours did not. Almost always it is one of two things, the answer arrived earlier, or the heading matched the question. Both are editorial fixes costing nothing but attention.

Doing this properly means a fixed question set and repeated sampling rather than one look, for the reason set out above. Our guide to tracking AI visibility covers the method, and Axiom GEO runs it across six AI engines every week, if you would rather not do it by hand.

Common questions

Does RAG mean training data no longer matters?

It matters less than people assume for being cited today. A model that never saw your site can still quote it if retrieval surfaces it, which is why blocking a retrieval crawler is a much bigger decision than blocking a training one.

Can I see what was retrieved?

Sometimes. Engines that show sources are telling you the retrieved set for that run. Recording those over many runs is the closest thing to visibility data anyone has.

Does schema help retrieval?

It helps a system resolve what a page is and who published it Google, introduction to structured data, which supports the identity half. It is not a retrieval lever on its own.

Want your pages built to be retrieved?

What do you need help with?

One click, two quick steps left.

Put this to work on your business

We build exactly this, SEO, AI visibility, PPC, email and automation, as one measured system. Talk it through with a real person, no obligation.

Book a free strategy call or take the two minute scorecard