← All models · bge-small-en-v1.5
use case · multi-model
The workhorse pattern behind good search — and both halves run locally. Stage 1: BGE embeds the whole corpus and the query and pulls a shortlist by cosine similarity — fast, and it scales to thousands of docs. Stage 2: the MS-MARCO cross-encoder reads each shortlisted passage together with the query and reorders them precisely. Watch the ranking change.
Stage 1 — bge-small-en-v1.5 (~34 MB, embeddings):
Stage 2 — ms-marco-MiniLM-L-6-v2 (~23 MB, cross-encoder):
The left order is fast similarity; the right order is the cross-encoder's precise read. When they differ, stage 2 has caught a nuance the bag-of-embeddings retrieval missed — that's exactly why you pay for a second pass on the shortlist.