MLGuerrillaStart M1 →
Embeddings and retrieval·14 min read·Updated 24 September 2026

Rerankers

A reranker reads your query and one document together and scores that pair. It runs on the shortlist that search already returned, and it is usually the cheapest accuracy you can add to a retrieval system.

A reranker takes one query and one document, reads them together in a single pass, and returns a score for how well that document answers that query. It does the same job a search index does, and it does it far more accurately and far more slowly.

That cost is why a reranker never searches. Search runs first over everything you have and returns a shortlist, and the reranker rescores only that shortlist. The text embeddings article covers the first stage, and this page covers what the second one recovers.

What it is

It rescores a shortlist, and it moves the top of it

The mechanism is what makes it accurate. An embedding model has to turn the document into a vector before it has seen your query, so the vector has to be good for every question anyone might ask. A reranker sees both at once, so it can judge this document against this question and nothing else.

Cohere's own documentation describes the input plainly, saying Rerank "combines the tokens from the query with the tokens from the document and the combined total counts toward the context limit for a single document". You can send many documents in one request, and each one is still read against the query on its own and given its own score.

Running both stages over the same corpus and the same eight questions as the embeddings article shows what the second one is worth.

A figure titled "The reranker reads the query and the passage together, and it moves the top", using the same 287 passages and the same eight questions as the embeddings article with a second stage added. The top strip shows a five-box pipeline: 287 passages, everything you have; then bge-small-en-v1.5 at 14 ms each, built once, labeled STAGE 1 SEARCH; then top 10, one dot product each; then bge-reranker-v2-m3 at 121 ms per pair, labeled STAGE 2 RESCORE and outlined in terracotta; then the answer, one passage. Below, eight questions are listed with the article each one landed on after search and after reranking. "How do I train a classifier on my own labelled examples" went from yolo to bert and is marked fixed. "Why can a model not predict the next word" stayed on bert. "What makes image generation slow" went from grounding-dino to diffusion-models and is marked fixed. "How does a model find objects in a photo" stayed on yolo, "can I search my photos by typing a sentence" stayed on clip, and "what is attention doing to each token" stayed on transformer. "How do I get a probability instead of generated text" moved from t5-and-encoder-decoder-models to encoder-decoder-architectures and is marked still wrong. "What does the model do with audio" moved from bert to transformer and is marked never in the top 10. A summary line reads: 4 of 8 right after search, 6 of 8 after reranking, and the top result changed on 6 of 8. The caption reads: the reranker only reorders what search handed it, and on the one question whose answer never reached the top 10 it had nothing to fix.
Both stages ran on a laptop CPU. The reranker is the same size class as the retriever and takes roughly nine times as long per document, because it runs once for every pair, where the retriever ran once per document and kept the result.

Two of the eight questions changed from a wrong article to the right one. The first is the near miss from the embeddings article, where "how do I train a classifier on my own labelled examples" landed on a YOLO passage about fine-tuning on labelled images. Reading the question and the passage together is enough to tell that the question is about text.

Keep reading

The rest of this article is free with an account

Create a free account to read the remaining 6 sections. It takes about twenty seconds and there's nothing to pay. The same account opens the slide decks and CV reviews.

  1. 02Where rerankers show up
  2. 03How it works, and what each pair costs
  3. 04The models you'll see, as of September 2026
  4. 05Choosing, and when to skip the second stage
  5. 06How to try it
  6. and 1 more