# Reranking

- **Canonical URL:** https://getaimath.com/dictionary/reranking/
- **Topics:** [Context, Memory & Retrieval](https://getaimath.com/dictionary/category/context-memory-and-retrieval/), [Retrieval-Augmented Generation (RAG)](https://getaimath.com/dictionary/category/retrieval-augmented-generation-rag/)
- **Last updated:** 2026-11-25

## What is Reranking?

**In one sentence:** Reranking reorders search results with a more careful model so the most relevant ones end up on top.

First, a fast search grabs, say, the top 50 candidates. Then a slower but smarter reranker reads each candidate together with the question and scores them more accurately. The best few go into the prompt.

![Context Window vs. Memory: Your Desk vs. The Filing Cabinet — Simple cartoon comparing the AI Context Window (a small desk that can only fit a few pages right now) with External Memory & Search (a big filing cabinet where a librarian grabs just the 3 pages you need).](https://getaimath.com/diagrams/context-memory-and-retrieval.png)
*Napkin Diagram (Context, Memory & Retrieval): The context window is the small desk the AI can see right now; search grabs the right pages from the filing cabinet.*

## What is an example of Reranking?

A reranker might move the paragraph that exactly answers your question from position 12 to position 1.

## Why does Reranking matter?

Reranking often gives a big boost to RAG quality.

## Related Concepts

- [Chunk Overlap](https://getaimath.com/dictionary/chunk-overlap/): Chunk overlap repeats a little text between neighboring chunks so ideas split at the edges are not lost.
- [Relevance Score](https://getaimath.com/dictionary/relevance-score/): A relevance score is a number showing how well a result matches a search query.
- [Hybrid Search](https://getaimath.com/dictionary/hybrid-search/): Hybrid search combines keyword search and semantic vector search to get better results than either alone.
- [Context Injection](https://getaimath.com/dictionary/context-injection/): Context injection is placing retrieved information into the model's prompt so it can use it to answer.
- [Chunk Size](https://getaimath.com/dictionary/chunk-size/): Chunk size is how big each piece of a split document is, usually measured in tokens or characters.
- [Query Expansion](https://getaimath.com/dictionary/query-expansion/): Query expansion adds related words or alternative phrasings to a search query to find more relevant results.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/reranking/)
