Embeddings and rerankers do different jobs

The embedding decides what enters the shortlist. The reranker decides the order. Neither one fixes a corpus that does not contain the answer.

A common RAG upgrade is “use a better embedding model.” Sometimes that is the right move. Often the candidate set is the problem, and a reranker over the same candidates is the cheaper win. They are not competing upgrades; they sit at different stages of the same funnel.

Recall first, precision second

A bi-encoder turns the query and each passage into one vector independently. The query vector is compared against a precomputed index with cosine similarity or a dot product, usually through an approximate nearest-neighbour search. It is fast because the document side can be computed once. It is weak because the query and the passage never see each other; the model has to compress both into a single point.

A cross-encoder concatenates the query and a candidate passage and runs the pair through a transformer. Every query token can attend to every passage token. It produces a much better relevance score, and it cannot precompute anything: one forward pass per candidate. That is why it is used on a shortlist, not on the whole corpus.

Late interaction, the idea behind ColBERT, keeps one vector per token and computes a token-level match at query time. It sits between the two: more storage than a bi-encoder, more interaction than a dot product, less work than a full cross-encoder. It is a good fit when you need precision but cannot afford a cross-encoder pass over many candidates.

Approach Interaction Precompute Where it fits
Bi-encoder None, one vector each Documents Recall over a large index
Cross-encoder Full query–passage attention Nothing Reranking a shortlist
Late interaction Token-level match Document tokens Precision with less latency

Measure the stages separately

If the gold passage is not in the candidate set, no reranker can recover it. Measure recall@k on the retriever before you tune the reranker. Then measure the reranker on the candidates it is actually given: nDCG@10, MRR, or simply the rate at which the gold passage lands in the top three. End-to-end answer quality comes after both; it hides which stage failed.

A useful diagnostic is the “oracle reranker”: if you could reorder the top 50 perfectly, would the answer be there and would the generator use it? If yes, the retriever is fine and the reranker is the bottleneck. If the passage is missing, the retriever is the bottleneck. If the passage is present and the generator ignores it, the prompt or the context order is the problem.

Choosing an embedding model

The dimensions are not the main decision. Language coverage, domain match, maximum input length, and the instruction prefixes the model was trained with matter more. Many retrieval models expect a query prefix and a document prefix; using them incorrectly can cost more than changing the model. Normalization and similarity metric have to match the index. Matryoshka models let you truncate dimensions, but the quality loss is not uniform across tasks.

Chunk size is part of the embedding decision. A passage that is cut mid-table or mid-definition embeds as a fragment. Structure-aware chunks and metadata filters usually beat a slightly better encoder on real corpora. If you fine-tune the embedder, keep a held-out query set; it is easy to overfit a small set of pairs.

Choosing a reranker

Start with a cross-encoder that fits your latency budget and rerank the top 25–50 candidates. More candidates improve recall but cost linearly; find the point where recall plateaus. A reranker score is not a probability, so do not threshold it as if it were one without calibration. And keep the first-stage retriever strong: the reranker can only reorder what it is given.

The cheapest useful stack is usually hybrid retrieval (BM25 plus dense) followed by a cross-encoder. The expensive mistake is a stronger embedder on a corpus whose chunks do not contain the answer in the first place.1

Measure recall first. If the passage is missing, buy a retriever, not a reranker.

  1. A cross-encoder is not a drop-in replacement for an embedding index. It cannot serve a corpus of millions of passages in one pass; it is a second stage. ↩