← All models Β· mxbai-rerank

use case Β· practical

Practical: rerank a keyword shortlist for RAG

Reranking is the precision stage of retrieval. A cheap first pass (here, a keyword filter) narrows a larger corpus to a shortlist, and the cross-encoder rereads each shortlisted passage against the query and reorders it β€” so the chunk you hand your LLM is the one that genuinely answers the question, not just the one with the most matching words. Both stages run locally.

The left column is what a keyword filter alone would surface (by shared-word overlap); the right column is after the cross-encoder rereads the shortlist. When the top result changes, that's the reranker earning its keep β€” you only run the slower cross-encoder on the shortlist the cheap filter narrowed down.

← Basics Β· mxbai-rerank Β· Next: Wild β†’