Cross-Encoder
A re-ranker model that evaluates a 'query + fragment' pair and sorts search results.
What Sets It Apart from Embeddings
Embeddings encode the query and document separately — they can be compared quickly. Cross-Encoder takes the texts together — this is slower but more accurate.
How It Is Used
- Vector search returns 20 candidates.
- Cross-Encoder evaluates each one.
- Keeps 3–5 most relevant.
Popular Cross-Encoders
- bge-reranker;
- Cohere Rerank;
- MS MARCO cross-encoders.
When to Use
- large knowledge base;
- accuracy is important;
- need to save LLM tokens.