What is a reranker?
A reranker is a model that reads each candidate passage together with the question and scores how well it answers, after a cheaper search has produced a shortlist. Why retrieval is done in two stages, what the second stage costs, and when to leave it out.
A reranker is the second stage of a retrieval pipeline. A first, cheap search over the whole store produces a shortlist of candidates, perhaps twenty or fifty. The reranker then reads each candidate alongside the question, gives every pair a relevance score, and reorders the shortlist so that what reaches the model's prompt is what actually answers.
Why the first stage is not enough
The first stage is usually embedding search, keyword search or both (hybrid search). Embedding search is fast because the question and each passage are turned into vectors separately, and the passages' vectors can be computed once and stored. The price of that speed is that the model never sees the question and the passage together. It compares two summaries of meaning, and a passage that shares a prominent word with the question can score as well as one that answers it.
Ask "who owns the billing migration?" and a memory saying "Acme's renewal is due in January and Tom is the account owner" may look relevant to an embedding: it has "owner" in it and talks about money. Keyword search has the same weakness from a different direction, since it counts terms without understanding them.
How a reranker works
Most rerankers are cross-encoders. Instead of encoding the question and the passage separately, a cross-encoder takes them as one input and outputs a single score for the pair. Because every word of the question can attend to every word of the passage, it can tell that "who owns" asks for a person responsible for a project, and that a sentence about an account owner on a different subject does not answer it. The scores it produces tend to separate right from wrong much more sharply than cosine similarity does.
The same property makes it expensive. Nothing can be precomputed, because the score depends on the question. Every candidate needs a full forward pass through the model, at query time, for every query.
Recall, then precision
That cost is why retrieval is split in two. The first stage is tuned for recall: cast a wide enough net that the right passage is somewhere in the shortlist, cheaply, over millions of items. The second stage is tuned for precision: spend real compute on a few dozen candidates to put the right one first. A reranker cannot recover a passage the first stage never found, and a first stage alone often finds the right passage and ranks it too low to make the prompt.
In a typical pipeline the order is: fetch candidates by one or more methods, fuse the lists, rerank the fused shortlist, then apply any business rules (recency, permissions, deduplication) and take the top few into the prompt.
What it costs
Reranking cost grows with two things. The first is the number of candidates: twice as many pairs is roughly twice the work, so the shortlist size is a direct trade between recall and latency. The second is concurrency, and it is the one teams discover late. A reranker running on a fixed pool of CPU or GPU capacity serves one request quickly and many requests slowly, because concurrent requests queue for the same hardware. Latency that looks fine in testing can multiply under real load, and since retrieval usually happens before the model starts answering, the user feels every millisecond of it.
Hosted reranking APIs move that cost to a per-call price and add a network round trip. Running a small cross-encoder locally keeps data in place and avoids the round trip, at the price of sizing the hardware for peak concurrency.
When to skip it
A reranker earns its place when the first stage regularly finds the right passage but ranks it poorly, which is common with conversational follow-ups and short questions. It is less useful when the corpus is small enough that the model can read every candidate itself, when queries are exact lookups that keyword search already answers, or when the latency budget cannot absorb another model call. It should also fail soft: if the reranker is unavailable, the pipeline can fall back to the fused first-stage order rather than returning nothing.
Where Memtro stands
Memtro's memory retrieval uses a reranker as its second stage. After vector, full-text and graph retrieval are fused, a small cross-encoder reads the question with each candidate and re-scores the shortlist, running on the same machine as the embedding model with no external API. If the reranker is unavailable, retrieval keeps its fused order. The memory documentation shows how the stages fit together, and the benchmarks page reports how the whole memory pipeline scores on public long-memory benchmarks.