Reranking

Rescoring an initial result set with richer signals so the most useful retrieved items rise to the top.

Move the folding-bike rule above a general overview

Imagine retrieving two handbook passages for “Can I take a folded bike into the lift?”

Initial order

A broad bicycle policy ranks first. A lift-access paragraph ranks second. Both are plausible candidates.

After reranking

A model compares the full question with each passage. The paragraph that explicitly addresses folded bicycles in lifts moves above the general policy.

When reordering cannot help

If the lift-access paragraph never entered the candidate set, a reranker cannot promote it. Inspect the shortlist before attributing a poor answer to the final ranking. Evaluate the new order against judgments about the actual question, especially qualifiers such as “folded.”

How AI Fits

Modern AI systems use reranking in search, recommendation, and retrieval-augmented generation pipelines. It often sits between candidate generation and final presentation. In legal, policy, and multilingual workflows, reranking is especially useful because semantic similarity alone often misses which result is actually most authoritative, current, or relevant to the user's exact task.

Follow the idea

Candidate generation determines which passages are available to order.

Semantic search can retrieve a first set of passages by meaning.

Examples in the AI guides

Related Yenra articles (4)

Source · Sentence Transformers’ retrieve-and-rerank guide

Return to Reranking in the A–Z glossary