Sub topic 1
What answer engines are and why they cite pages
Prerequisites
This chapter assumes you already know three things:
- Crawling and indexing. A search engine sends automated programs to fetch pages, stores what it finds in an index, and looks pages up in that index when someone searches.
- HTML and HTTP. You can read a page's markup and understand requests, responses, status codes, and headers such as
User-Agent. - Large language models. You know that a language model generates text one token at a time, based on patterns learned during training.
You don't need to have built a retrieval system. The chapter introduces that part.
What an answer engine is
A classic search engine returns a ranked list of links. You click, read, and decide for yourself. An answer engine takes the same question and returns a written response, usually a few paragraphs, with links to the pages it drew on.
Three products are the focus of this tutorial:
- ChatGPT search, which is the web search feature inside ChatGPT.
- Perplexity, a product built around cited answers from the start.
- Microsoft Copilot, which answers questions in Microsoft's apps and on the web.
All three look different on screen, but they share one design: a language model writes the answer, and a search step supplies the material the model writes from.
Why the model needs search at all
A language model on its own has two limits that matter here.
- A training cutoff. The model learned from text collected up to some date. It knows nothing about pages published afterward, such as a price change last week or a library released this morning.
- No reliable memory of sources. Training compresses text into numerical weights. The model can reproduce a fact without being able to say where it came from, and it can produce a fluent statement that is wrong.
Search addresses both limits. At question time, the system looks up current pages and gives their text to the model as context. The model is then asked to answer from that text rather than from memory alone. This pattern is called retrieval-augmented generation, usually shortened to RAG. The next chapter covers it step by step. For now, the key point is that retrieval happens first and generation happens second.
Why the answers cite pages
Citations exist for three practical reasons.
- Verification. A reader can open the linked page and check whether it supports the claim. This matters because generated text can sound confident while being wrong.
- Attribution. The answer is built from other people's work. Links send some readers back to the publishers, which keeps the web worth publishing on.
- Trust and debugging. If an answer is wrong, the sources show where it went wrong. The cause might be a bad page, a good page that was misread, or a claim that no source supports.
A citation is a claim by the system: "this page supports this statement." The system does not guarantee that claim is true. Later chapters cover how citations are attached and why they can be imperfect.
The main pieces
Every answer engine has the same four parts, even though each company builds them differently.
| Part | What it does | Who controls it |
|---|---|---|
| Web index | A stored copy of pages the engine has crawled, searchable by content | The engine, but your robots rules and server affect what gets in |
| Retrieval step | Turns the question into searches and picks candidate pages and passages | The engine |
| Language model | Reads the retrieved passages and writes the answer | The engine |
| Citation layer | Links statements in the answer to the pages they came from | The engine |
Your influence is mostly on the first row (whether your pages can be fetched and indexed) and on the pages themselves (whether the retrieval step can find and use them). You have no control over the model or the citation layer.
The flow from question to cited answer
The diagram shows the path a question takes. Each box becomes a later chapter in this tutorial.
Note that crawling is not part of the path a single question takes. Crawlers run continuously in the background and fill the index. The question-time path only reads from it. This split explains many behaviors you will see later: a page that was never crawled cannot be retrieved, and a page crawled months ago may be retrieved in its old form.
Answer engines compared with search engines
The differences affect how you think about visibility.
| Aspect | Classic search | Answer engine |
|---|---|---|
| Output | Ranked list of links | Written answer plus a small set of links |
| Unit of selection | Whole page | Passage within a page |
| Number of sources shown | Ten or more per results page | Often a handful per answer |
| User behavior | Click to read | May read the answer and never click |
| Repeatability | Fairly stable for the same query | Can differ from run to run |
Two points deserve emphasis.
First, the unit is the passage. The model sees excerpts, not whole pages. A page can be excellent overall and still lose out if no single stretch of text answers the question cleanly.
Second, citation slots are scarce. A results page can show many links, but an answer might cite three to six pages. Being in the index is necessary and far from sufficient.
Where the content comes from
Each engine assembles its web content differently, and Chapter 6 covers this in detail. In outline:
- ChatGPT search relies on OpenAI's own crawling plus search partners. Bing is among the sources it has used.
- Copilot draws on Bing's index, since both are Microsoft products.
- Perplexity combines its own crawling and index with results from other search providers.
Treat these as a starting model, not a fixed fact. Companies change their sources, and they don't always document the details. Check current vendor documentation before relying on any specific claim.
Three kinds of web access
An answer engine's company may fetch your pages for three different purposes, and they are not interchangeable:
- Search crawling, which builds the index used to find pages.
- Training crawling, which collects text to train future models.
- User-initiated fetches, where the system opens a specific URL because a user asked about it or because the answer needed it right now.
Each purpose can use a different user agent, and you can set different rules for each. A site can decline training use and still appear in answers. Chapters 4 and 5 show how.
What citation does and does not mean
Because citations look authoritative, it helps to be exact about their limits.
- A cited page was retrieved and shown to the model. That does not prove the model quoted it accurately.
- A page that is not cited may still have influenced the answer, or been retrieved and discarded.
- The same question asked twice can produce different sources, because query rewriting, ranking, and generation all involve variation.
- No setting, markup, or file can guarantee that your page will be cited.
These limits shape the goal. You can make your pages fetchable, indexable, clearly written, and easy to extract from. Those steps raise the odds. They do not set the outcome.
What the rest of the tutorial covers
The remaining chapters follow the flow in the diagram. First comes the pipeline and the crawling side: indexing, user agents, robots.txt, and each engine's sources. Next come the question-time steps: query rewriting, ranking, passage extraction, and grounded answers. The last chapters cover what you can influence (page structure, structured data, sitemaps, IndexNow), how to measure crawls and referrals, and where the approach breaks down.
Exercise
A site owner says, "We are indexed by Bing, so Copilot is guaranteed to cite us." Give two separate reasons this reasoning is wrong.
Show answer
First, being indexed only makes a page eligible for retrieval. The retrieval step must still choose it from many candidates, and an answer usually cites only a handful of pages. Second, citations are not deterministic. Query rewriting, ranking, and generation vary between runs, and passage-level fit matters more than page-level presence. No index membership or markup guarantees a citation.
Exercise
Why does the diagram draw crawlers feeding the web index separately from the question-time path? Name one consequence for a page you published today.
Show answer
Crawling runs continuously in the background and writes to the index, while a question only reads from the index. So a page published today cannot be retrieved until it has been crawled and indexed. Until then, the engine cannot find it through its index, and an older copy of the page may be used if one was already stored.