Explain it in 60 seconds
Bi-encoders vs cross-encoders
Machine Learning · NLP · Experienced
What's the difference between bi-encoders and cross-encoders, and how are they used together?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Bi-encoder: encode query and document separately; compare vectors.
- Fast, scalable; documents pre-encoded and indexed.
- Cross-encoder: encode query and document together; outputs a relevance score.
- More accurate but slow; can't pre-compute.
- Two-stage retrieval: bi-encoder retrieves, cross-encoder reranks.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.