AI From Scratch/Phase 19/Lesson 66/~90 minutes

Cross-Encoder Reranker

BuildPythonNo prerequisites

A bi-encoder embeds query and document independently. A cross-encoder concatenates them and reads both at once. The cross-encoder is the smartest reader and the slowest. Used as a second stage on the bi-encoder's top-k, it pays for itself.

Loading lesson page...