Sub topic 12
Reranking: Choosing the Best Passages
This chapter assumes you understand basic traditional search, embeddings, and retrieval-augmented generation. Retrieval finds candidate passages. Reranking decides which candidates deserve attention first.
Why retrieval needs a second ranking step
The first retrieval stage is usually designed for speed. It searches a large index and returns a candidate set, such as the top 50 passages. These passages may match the query by keywords, meaning, or both. They are possible answers, not confirmed answers.
Reranking is a slower second pass. It examines each candidate with more context and assigns a new relevance score. The system then keeps the strongest passages for answer generation.
A reranker can compare the whole user query with a passage at the same time. This is often more precise than comparing two separately created vectors. Some systems use a cross-encoder model, which reads the query and passage together. Others use a language model or a proprietary scoring model.
What a reranker rewards
A reranker may consider several signals:
| Signal | What it rewards | Possible weakness |
|---|---|---|
| Direct relevance | The passage answers the exact question | It may miss useful background |
| Specificity | Concrete details, conditions, and examples | Narrow wording may exclude related evidence |
| Freshness | Recent information when dates matter | Newer does not always mean more accurate |
| Authority | Reliable sources or recognized expertise | Authority can be difficult to judge automatically |
| Diversity | Different sources or viewpoints | Diversity can reduce focus |
The exact signals and weights vary by product. An outside observer usually cannot know the complete scoring formula.
Common reranking failures
Reranking can improve retrieval, but it cannot repair every earlier mistake.
A passage may rank highly because it repeats the query wording while giving little useful information. This is a lexical relevance error. A passage may also sound authoritative but lack evidence. This is a quality error.
The system can also overvalue a short passage that contains the right phrase but omits an important condition. For example, a page might state that a product is “best for flat feet” without explaining its price, fit, or intended use. A longer passage with those details may be more useful, even if its wording is less similar to the query.
Query fan-out adds another problem. If several sub-queries retrieve passages from the same page, rank fusion may increase that page's visibility before reranking. Reranking can then favor repeated coverage instead of independent confirmation.
Implications for content planning
Write passages that answer one focused question completely. State the subject, conditions, exceptions, and supporting details close together. Clear headings and descriptive sentences help retrieval, but keyword repetition alone is not enough.
For a target topic, map likely sub-questions and check whether each has a self-contained passage. Include comparisons, limitations, prices or dates when they matter, and links to primary evidence. This gives a reranker useful material to select.
Reranking is therefore a relevance filter, not a guarantee of truth. Measure visibility across repeated prompts and inspect which passages appear in answers. Product behavior, indexes, model updates, and query wording can all change the result.
Exercise
A passage contains the exact words in a user's question but omits the relevant conditions and date. Should you treat its high reranking position as proof that it is the best source?
Show answer
No. Reranking estimates usefulness for the query. Review the passage's context, freshness, authority, and missing conditions before accepting it.