AI GLOSSARY · AI CONCEPTS
Reranking
Definition
Reranking is a second search step that reorders a first set of retrieved candidates by relevance to the query, so the best few can be passed on, for example to a language model.
Also called: reranker, rerank, reranking models, cross-encoder reranking, rerank search results.
In plain language
Searching a large pile of documents quickly means taking shortcuts, so the first list of results is rough. Reranking is a careful second look at that short list: a model reads the question together with each candidate and puts the best ones at the top. It is like a quick scan of a library shelf followed by a closer read of the few books you pulled out. It cannot recover a document the first step never found, and it adds time and, with hosted services, a charge for each call. It helps most when the right passage is in the first list but buried low down.
Technical definition
A common retrieval pipeline first fetches a larger candidate set cheaply, using vector search, keyword search such as BM25, or both, and then a reranker scores each candidate against the query and sorts them. Cohere's documentation describes a rerank endpoint that takes a query and a list of documents and returns results ordered from most to least relevant, each with a relevance score. Anthropic's contextual retrieval post describes retrieving an initial set (it used the top 150) and reranking to keep the top 20, and notes a trade-off between reranking more chunks and lower latency and cost.
Worked examples in this catalogue
Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.
Guide · Illustrative, not executed
What Is RAG? Retrieval-Augmented Generation Explained
- What you see
- The guide describes indexing and querying a document store, and advises logging the top retrieved chunks for each failing question to see whether the answer reached the prompt.
- Why it exercises the concept
- That log is how you tell whether a reranking step would help: if the right chunk is retrieved but ranked low, reordering is the fix. If it is missing, the fix is earlier in the pipeline.
Skill by Skill Almanac · Illustrative, not executed
rag-chunking-planner 56/100 · Provisional, not yet measuredScored · Method v0.2 · How we score
- What you see
- Your documents chunked by three strategies, with defects and offline recall measured for each, so chunk settings are chosen with numbers.
- Why it exercises the concept
- Reranking only reorders what retrieval found. Measuring recall of the first step shows whether the right chunks are in the candidate set at all.
Skill by Skill Almanac · Illustrative, not executed
context-window-packer 56/100 · Provisional, not yet measuredScored · Method v0.2 · How we score
- What you see
- A choice of which files fit one prompt's token budget, with a record of what was kept, shrunk or dropped, and why.
- Why it exercises the concept
- Reranking exists to decide which few candidates go into a limited prompt. This skill shows the same keep-or-drop decision applied to files.
How it shows up when you use agents
Reranking sits inside retrieval, between search and the prompt. If you build a question-answering system over documents, or use an MCP server that searches a knowledge base, the first search often returns more candidates than the prompt can hold. A reranker orders them so the strongest few are kept.
What breaks when it is misunderstood: teams add a reranker to fix answers that fail because the right passage was never retrieved. Reranking cannot add a document the first step missed. Another failure is adding it without measuring, which costs latency and money for no gain.
Next action: log the top retrieved chunks for failing questions, as the What is RAG guide suggests. If the right chunk is present but low, test a reranker. If it is absent, fix chunking or the embedding step first. Compare results on questions with known answers before and after.
Common confusions
- Reranking versus retrieval. Retrieval finds candidates from a large store. Reranking reorders a short list of candidates.
- Reranking versus embeddings. An embedding turns text into numbers so similar text can be found. A reranker scores a query against each candidate, as Cohere's page describes for its endpoint.
- Reranking versus filtering. Reordering changes position. Keeping only the top few is a separate cut that usually follows it.
- Myth. A reranker fixes poor chunking. It can only reorder the chunks it is given.
Related terms
Show all 13 related terms
Terms that mention Reranking
More in AI concepts
Sources
- An Overview of Cohere's Rerank Model, Cohere (accessed 2026-11-24)
- Introducing Contextual Retrieval, Anthropic (accessed 2026-11-24)
Definitions are written by Skill Almanac from these sources. An independent review of the sources and examples is in progress. Wikipedia is never the only source.
Review record
Independent review in progress
Drafted by claude-sonnet-5-5. An independent review of its sources and examples is in progress.
This entry is still in review, so it is not listed in search engines yet.
Change log (3)
- : First version.
- : Verifier pass: applied verifier corrections to unsourced or over-stated claims.
- : Corrected explicit MCP-server anchor; link-only verification does not assert complete content approval.