← All models · GTE-large

Multi-model · GTE-large + cross-encoder · WASM

Retrieve with GTE-large, then rerank

This is how real search works. Stage one: GTE-large embeds the query and every passage independently and ranks by cosine — fast, cacheable, scales to millions. Stage two: a MS MARCO cross-encoder reads the query and each shortlisted passage together and re-scores them — slower, but far more precise. A strong first-stage retriever like GTE-large means the shortlist already contains the right answer for the reranker to surface. Both models run locally; watch the order change between the two stages.

Two-stage search

Why two stages

A bi-encoder (GTE-large) turns every document into a vector once, so retrieval is just nearest-neighbour math — it scales, but the query and document never "see" each other. A cross-encoder attends across the pair, catching relevance a cosine misses, but it must run the model for every candidate — too slow for a whole corpus. Retrieve wide and cheap, rerank narrow and sharp. The better your first-stage embedder, the more likely the answer is already in the shortlist.