My reranker gave the right passage a score of -7.9. The passage contained the exact sentence the user asked about, word for word. It just contained it around token 600, and the reranker stopped reading at 512.
No error. No warning. Just a confident, wrong ranking.
This is the cross-encoder reranker max_length=512 problem, and if your RAG pipeline uses bge-reranker , an ms-marco cross-encoder, or anything else built on a BERT-style encoder, it is probably happening to you right now.
TL;DR
Cross-encoder rerankers read [CLS] query [SEP] passage [SEP] as one sequence, and most are capped at 512 tokens total.
Anything past the cap is cut off before the model sees it.…