
Your RAG app retrieves documents, hands them to a language model, and the model still answers with the wrong passage. The retriever did its job. It found 50 plausible chunks. The problem sits one step later: the top five chunks it passed along were not the five most relevant ones. Reranking fixes that ordering problem, and it does so without a re-index, a new embedding model, or a bigger vector database.
Reranking adds a second scoring pass between retrieval and generation. A cross-encoder model reads each query and document pair together and scores relevance with far more care than a vector similarity search can. You retrieve a wide net, say the top 50 to 100 candidates, then keep the best 5 to 10 for the model.
Use this three-part decision rule:
I treat reranking as a cheap second opinion on retrieval. It costs a fraction of a cent per query on hosted APIs, and it often lifts answer quality more than a larger embedding model would.
Most retrieval pipelines start with embeddings. An embedding model turns your query into a vector and turns each document chunk into a vector, then ranks chunks by vector similarity. This design is fast because you can precompute each document vector once and compare with simple math at query time. The price of that speed is compression. A bi-encoder must squeeze all the possible meanings of a document into a single fixed vector, and some meaning gets lost in that squeeze. Pinecone states it in plain terms in its RAG guide: bi-encoders compress all the possible meanings of a document into one vector, so information is lost, while rerankers are slow and retrievers are fast. That tradeoff is the whole reason the two stages exist side by side.
A reranker takes another path. It is a cross-encoder, a model that reads the query and one document together in a single pass and outputs a relevance score for that pair. Because it sees both texts at once, it can catch word-level matches, negation, and context that a vector comparison misses. The cost is a forward pass per pair, which is why you run it on a short list instead of your whole corpus.
Think of it as two filters with opposite strengths. The bi-encoder is a wide, cheap net that pulls in 50 to 100 candidates in milliseconds. The cross-encoder is a careful reader that reorders those candidates by true relevance. One finds, the other judges. If you want the background on the first stage, my guide on how bi-encoder embeddings score documents covers the vector side in detail.
The size gap between the two model types is large. Cohere documents its current rerank models at a 32,768-token context window for query plus document combined, with the Pro tier at around 2 billion parameters and the Fast tier at around 500 million. Those are small models next to a frontier language model, and that small size is a feature: it keeps each scoring pass fast and cheap.
A typical pipeline has three stages. First, retrieval pulls the top 50 to 100 candidates with vector search, keyword search, or a hybrid of both. Second, reranking reorders those candidates and keeps the top 5 to 10. Third, generation feeds only those survivors to the language model. The reranker sits in the middle because it is too slow to score a full corpus and too accurate to waste on a task a vector search handles well enough.
Order inside the prompt matters as much as order in the ranking. Research on long-context models, the paper known as Lost in the Middle, shows that language models use information at the start and end of a long context far better than information buried in the middle. A reranker that puts the best passage first gives the model its strongest evidence in the position where the model reads it best. Retrieval quality and prompt order are the same problem viewed from two sides.
Thresholds belong in this stage too. A reranker score tells you how relevant a document is relative to the other candidates for that query. A top score below your threshold signals that the corpus has no good answer, and your app can say so instead of letting the model invent one. Set the threshold from labeled data, not from a guess, and recheck it each time you change models, because scores are not comparable between providers or even between versions of the same model.
Chunking interacts with reranking in a quiet way. A reranker reads a query and a document inside one context window, so a chunk that is too long gets cut or auto-chunked by the provider. Short, focused chunks give the reranker clean units to score. If you want the chunking side of this, see my notes on chunking before retrieval. The store underneath matters too: reranking sits on top of your vector database’s top-k results, so a weak first stage still caps what the reranker can fix.
Four options cover most real deployments: two hosted APIs, one open-source self-hosted model, and the do-it-yourself route of prompting a large language model to rank. The table below uses figures from the providers’ own documentation, checked on the day this article was written. Pricing moves fast, so treat the dollar figures as a snapshot and confirm them on the provider page before you commit.
| Option | Context length | Pricing model | Self-host | Key tradeoff |
|---|---|---|---|---|
| Cohere Rerank 5 | 32,768 tokens | Per search | No | Simple billing, 100+ languages, Pro and Fast tiers |
| Voyage rerank-3 | 32,000 tokens | Per token | No | Highest accuracy in its line, strong on long documents |
| Voyage rerank-3-lite | 32,000 tokens | Per token | No | Lower price, built for latency-sensitive apps |
| bge-reranker-v2-m3 | Depends on setup | Free, Apache 2.0 | Yes | Full control, you run the GPU and the ops |
| LLM as reranker | Model dependent | Per token | Possible | Flexible prompts, far higher cost and latency |
Two details deserve a closer look. Cohere bills rerank by the number of searches, not by tokens, and its models cover more than 100 languages, which suits multilingual corpora. Voyage prices by tokens with a formula: query tokens times document count, plus the sum of document tokens. I will work through that formula with real numbers in the next section.
On benchmarks, keep the source in mind. Voyage reports that on its suite of 95 retrieval datasets, rerank-3 and rerank-3-lite beat Cohere Rerank v4.0 Pro by 2.72 percent and 2.23 percent, and that on long-document retrieval rerank-3 beats Cohere v4.0 Pro by 13.84 percent. Those are vendor-published numbers from a vendor judging its own model, so read them as a directional signal, not as a neutral fact. No verified head-to-head of Cohere Rerank 5 against Voyage rerank-3 exists in public sources I could check, so I will not imply one.
Run the numbers before you pick a tier, because the gap between options is wide. Voyage lists rerank-3 at 0.05 dollars per million tokens and rerank-3-lite at 0.02 dollars per million. Its own estimate puts a typical request, 100 documents with 500 tokens of query plus document each, at 0.0025 dollars for rerank-3 and 0.001 dollars for the lite tier. At that rate, 10,000 search queries a day cost about 25 dollars a day on rerank-3, or about 10 dollars on the lite tier. Those are small numbers next to the cost of the generation step that follows.
The comparison with prompting a large language model is stark. Voyage reports that purpose-built rerankers such as rerank-2.5 run up to 60 times cheaper and 48 times faster than state-of-the-art language models used as rerankers, with up to 15 percent better reranking accuracy measured as NDCG at 10. Its blog post puts the price gap in plain figures: language models cost 1.25 to 3 dollars per million tokens against 0.05 dollars for rerank-2.5, and it reports speedups of 9 times against Claude Sonnet 4.5, 36 times against GPT-5, and 48 times against Gemini 2.5 Pro. The exact multiples will shift as models change, but the direction holds: a small model built for one job beats a giant model asked to do that job through a prompt.
Rate limits shape the choice too. Voyage documents a 2,000 requests per minute limit for its rerankers, which covers most production search traffic without a second thought. Cohere keeps its dollar price behind a JavaScript pricing page, so I will not quote a figure I could not verify. If your shortlist includes Cohere, check its pricing page at publish time and compare per-search cost against your expected query volume.
I see teams make one costing mistake again and again: they price the reranker and forget the tokens it saves downstream. A reranker that cuts the context from 20 chunks to 5 chunks also cuts the generation bill, because the language model reads fewer tokens per answer. In many pipelines the reranker pays for itself through that smaller prompt alone.
Reranking helps only when the first stage gives it something to work with. Four pitfalls show up in nearly all failed deployments, and all four are easy to avoid once you know them.
A candidate pool that is too small. A reranker can only reorder what retrieval found. If your first stage returns 10 candidates and the right chunk sits at rank 25, no reranker will ever see it. Retrieve 50 to 100 candidates, then let the reranker cut the list to 5 or 10. The extra retrieval is cheap, and the wider net is the whole point of a two-stage design.
Thresholds left uncalibrated. A score of 0.7 from one model means nothing next to a score of 0.7 from another. Scores shift between model versions too. Pick your cutoff from labeled queries: run your test set, look at the score distribution for right and wrong answers, and set the threshold where the two separate. Then lock the model version in your config, and recheck the threshold whenever you upgrade. An uncalibrated threshold either blocks good answers or waves bad context through, and both failure modes look like a model problem when the config is at fault.
Oversized documents and silent chunking. Providers handle long documents by splitting them for you, and the split changes what gets scored. Cohere documents that its current models break documents into 32,764-token chunks, and that the request fails with an error when the number of documents times the maximum chunks per document passes 10,000. Older v3 models split at 4,093 tokens. If your chunks are already short, this stays out of your way. If you send whole PDFs, it will, and the error will arrive at the worst time.
Treating scores as portable. A reranker score is a ranking signal inside one query, not a universal quality grade. You cannot compare a Cohere score with a Voyage score, and you cannot carry a threshold from one provider to the other. Keep the evaluation loop inside one provider at a time. If bad context still slips through, the fix is often feeding the model only relevant context, and the reranker is the gate that decides what counts as relevant.
Start with a small, honest eval. Gather 20 queries your users ask, label the correct chunk for each one, and run your pipeline twice: once with retrieval alone, once with retrieval plus reranking. Retrieve the top 100, rerank to the top 10, and track NDCG at 10 before and after. NDCG at 10 rewards putting the right document near the top of a 10-item list, which matches what your language model sees. If the score moves up and the answers improve, you have evidence. If it stays flat, your first stage is already good enough, or your chunks need work before any reranker can help.
That 20-query pilot takes an afternoon, and it answers the only question that matters: does reranking help on your corpus, with your queries. I recommend running it before you sign up for a paid tier or provision a GPU for self-hosting. The pilot also gives you a baseline you can reuse later, so the next time a vendor ships a new model you can test it in an hour instead of debating it for a week. My guide on evaluating retrieval with a labeled query set walks through the eval setup in more depth.
Skip reranking when the pilot says skip it. A tiny corpus, a first stage that already ranks well, or a use case where the model needs broad context rather than one right passage all argue against the extra step. Reranking is a tool for one failure mode, retrieval that finds the right neighborhood but picks the wrong house. If that is your failure mode, it is the cheapest fix in the RAG stack. If it is not, the money and the latency are better spent elsewhere, for example on retrieval-quality fixes before reaching for fine-tuning.
Run the pilot this week. Pick one reranker, one labeled query set, and one metric, then let the numbers decide. Your RAG app will either get better by a clear margin for a fraction of a cent per query, or you will learn that your retrieval was not the bottleneck, and that answer is worth an afternoon too.