For the complete documentation index, see llms.txt. Every page on this site is also served as Markdown: append `.md` to any URL, or send `Accept: text/markdown`.
Skip to content

Glossary term

Reranking

Reranking is the second step of retrieval: a fast first search returns many candidate passages, then a slower, more precise model scores each one against the question and reorders them, keeping the best few for the language model to read. It decides which of the retrieved pages actually get used, and in what order.

7 days free · card required

Answer · ChatGPTasked

Question: AI search visibility for agencies

ChatGPT answered: This is important because AI visibility isn't simply another version of keyword rankings; current research describes it as a multi-stage process involving retrieval, reranking, context selection, citation and downstream behavior.

Sources cited

  1. 1loudface.co
  2. 2arxiv.org
  3. 3foundgrove.com
  4. 4developers.google.com

Not namedAttensira is missing from this ChatGPT answer.

Analyst agentAnalyst · reads this workspace's answersattensira.com workspace, read over the Attensira MCP · · 1 stored answer, ChatGPT, 2026-10-03
Karl-Gustav KallasmaaKarl-Gustav Kallasmaa, Founder & CEO

Last updated

Key facts

Retrieval in an AI answer engine usually happens twice. The first search is fast and broad: it pulls a long list of passages that might be relevant. The second, reranking, is slow and careful: it reads each candidate against the question and puts them in a new order. Only the top of that new order reaches the model that writes the answer.

How does reranking work?

question
→ first-stage retrieval (keywords and/or vectors)   → ~100+ candidates
→ reranker (reads question + passage together)      → new order
→ top few passages                                  → language model
→ answer with citations

The difference between the two stages is how they compare. A first-stage search has to cover millions of documents in milliseconds, so it compares the question and each passage separately: by matching words, as in BM25, or by distance between precomputed vectors, as in vector search. A reranker, usually a cross-encoder, reads the question and a passage together and scores how well that passage answers that question. It is far more accurate and far too slow to run on everything, which is why it only runs on the short list.

What is reranking worth?

Anthropic published a measured example. In its test of contextual retrieval, the share of queries where the right chunk was missing from the top 20 was 5.7% at baseline. Better first-stage retrieval, combining contextual embeddings with BM25, cut that to 2.9%. Adding a reranker, which scored 150 retrieved chunks and kept 20, cut it to 1.9%.

The cost is time. Reranking adds a step to every query. Engines decide how many candidates to rerank by trading accuracy against latency and money, and none of the consumer AI engines publishes that setting.

Can you see reranking in real answers?

Only its outcome, and you should be suspicious of anyone who claims more. What every engine shows is the list of links under its answer, in order. Average a domain's place in that list across many answers and you get the visible trace of retrieval and reranking together.

Here is that trace for the answers to the 61 questions Attensira tracks about its own category, between 4 September and 4 October 2026, read over the Attensira MCP: 100,380 citations in 4,524 answers.

Official sources are linked early: developers.openai.com at a mean position of 2.20 and openai.com at 3.11, with the trade publication searchengineland.com at 2.70. Our own attensira.com sat at 3.31 across 1,525 citations. g2.com reviews, GitHub repositories and LinkedIn posts are cited too, but late, at 4.44, 4.85 and 6.70, as supporting evidence rather than as the answer. That fits what a reranker rewards: a passage that answers the question precisely. It is a pattern in the outcome, not a reading of any engine's scores.

Position is an index into one answer's list of links, averaged per domain. It is not a ranking of a brand, and a move from 3.3 to 3.0 on its own is not evidence of anything.

Which domains get linked first, and which last?

Position is the visible trace of retrieval and reranking together. Across a month of answers to the 61 questions we track, OpenAI's developer documentation sat near the top of the list of links, while review, GitHub and LinkedIn pages were cited but late. Read each position beside its citation count.

Mean position in the answer's list of links, 4 Sep to 4 Oct 2026
  • developers.openai.com

    Citations
    449
    Mean position
    2.20
  • searchengineland.com

    Citations
    514
    Mean position
    2.70
  • openai.com

    Citations
    1,482
    Mean position
    3.11
  • tryprofound.com

    Citations
    900
    Mean position
    3.77
  • g2.com

    Citations
    1,028
    Mean position
    4.44
  • github.com

    Citations
    1,100
    Mean position
    4.85
  • linkedin.com

    Citations
    739
    Mean position
    6.70
Analyst agentAnalyst · reads this workspace's answersattensira.com workspace, read over the Attensira MCP · · 100,380 citations in 4,524 answers, 24 of 31 days

Why should a publisher care?

Because reranking is where "found" turns into "used". Being in the first-stage results gets your passage onto the short list. The reranker then compares it with the other candidates on one question: which passage answers this best? General, well-ranked pages lose that comparison to specific ones.

What helps:

  • One question, one passage. Put the direct answer in the first sentences under a heading that asks the question.
  • Self-contained wording. The reranker sees a passage, not the page. Name the subject instead of writing "it" or "this tool".
  • Specifics. A number, a limit or a named condition makes a passage a better match for a precise question.

How does Attensira use it?

Attensira cannot see any engine's reranker, and does not pretend to. It records the outcome: every citation in every answer, in order, and ranks the pages that decide each question by citation share times position weight, so a page linked first in many answers counts for more than one linked last in a few. When your page is retrieved but cited late, the crew drafts the passage that answers the question directly, for your approval. See win this answer.

Questions about reranking

What does a reranker do?
It takes the candidates a first-stage search returned, often 100 or more passages, and scores each one against the question with a model that reads the question and the passage together. It then reorders them and passes the top few to the language model.
Why is a second pass needed?
Because the first pass has to be fast over millions of documents, so it compares the question and each passage separately, by keywords or by precomputed vectors. A reranker can afford to read them together, which is more accurate, because it only runs on the short list.
How much does reranking improve retrieval?
In Anthropic's published test of its contextual retrieval method, adding a reranker cut the share of queries where the right chunk was missing from the top 20 from 2.9% to 1.9%, against a 5.7% baseline without either technique. The reranker narrowed 150 retrieved chunks to 20.
Can I see whether my page was reranked?
Not directly. Engines do not publish their candidate lists or scores. What you can see is the outcome: whether your page was cited, and where it sat in the list of links. Averaged over many answers, that position is the visible trace of ranking and reranking together.
How do I write a page that survives reranking?
Give each question a passage that answers it directly and on its own, in the first sentences under a heading that asks it. A reranker scores the passage against the question, so a precise, self-contained answer beats a page that is about the topic in general.

Where do these facts come from?

2 sources, 3 statements: each statement with the page it came from and the day it was checked.

  1. Anthropic reports that contextual embeddings plus contextual BM25 reduced the top-20-chunk retrieval failure rate by 49%, from 5.7% to 2.9%, and that adding reranking reduced it by 67%, to 1.9%, retrieving 150 chunks and using a Cohere reranker to narrow them to the top 20.

    anthropic.com · retrieved

  2. In Attensira's own workspace, read over the Attensira MCP on 4 October 2026, the 4,524 ChatGPT and Perplexity answers to 61 tracked questions between 4 September and 4 October 2026 (24 of 31 days sampled) carried 100,380 citations; the mean position of a cited URL in the answer's list of links was 2.20 for developers.openai.com (449 citations), 2.70 for searchengineland.com (514), 3.11 for openai.com (1,482), 3.31 for attensira.com (1,525), 3.77 for tryprofound.com (900), 4.44 for g2.com (1,028), 4.85 for github.com (1,100) and 6.70 for linkedin.com (739).

    attensira.com workspace, read over the Attensira MCP on

  3. In Attensira's own workspace, read over the Attensira MCP on 4 October 2026, ChatGPT's stored answer of 3 October 2026 to 'AI search visibility for agencies' described AI visibility as a multi-stage process involving retrieval, reranking, context selection and citation, citing 4 domains inline; Attensira was named in 0 of the 105 answers to that question in the 30 days to 4 October 2026.

    attensira.com workspace, read over the Attensira MCP on

Want whatever it takes to win the answer?

7 days free · card required