Cross-Encoder
Definition
Model that processes two inputs together and evaluates their relationship or relevance.
For example, a cross-encoder processes search query and document as a pair. As a result, their components can interact directly with each other. Unlike a bi-encoder, it typically does not generate independently indexable vectors per text. It is therefore often used for re-sorting a limited result set.
Simply explained
A professional reads question and possible hits together and evaluates how well they fit together.
Why it matters in practice
Relevant for more precise hit sequences in company search and RAG.
Example from business
Example scenario: After a quick vector search, a cross-encoder re-evaluates the 30 best manual sections.
Limits and pitfalls
- Calculate all document pairs; ignore reranking costs; cut input; interpret scores without checking as probabilities.
Origin & history
Common text pair models were disseminated with Transformer encoders and used as rankers in retrieval pipelines.
Use in mid-sized companies
- First, retrieve candidates efficiently; then re-sort them to a limited extent and compare hit quality and latency.
Frequently asked questions
Is this cross-attention?
No. Does it always produce values between 0 and 1? No. Does it replace the first retrieval step? Usually not.
Sources
- Cross Encoder Usage · Sentence Transformers, Cross Encoder Usage
Source check: 10/09/2026. Definition and documented classification verified; examples describe possible applications.
Editorially reviewed on: