Skip to content

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

  1. Vector search returns 20 candidates.
  2. Cross-Encoder evaluates each one.
  3. Keeps 3–5 most relevant.
  • bge-reranker;
  • Cohere Rerank;
  • MS MARCO cross-encoders.

When to Use

  • large knowledge base;
  • accuracy is important;
  • need to save LLM tokens.

See Also

← All Terms