← All models Β· mxbai-rerank

use case Β· multi-model

Multi-model: GTE retrieves, mxbai reranks

The two-stage pipeline behind real search and RAG, running entirely in your browser with two models. Stage 1: a GTE bi-encoder embeds every passage and the query, and ranks by cosine similarity β€” fast, but only surface-level. Stage 2: the mxbai DeBERTa-v2 cross-encoder reads each shortlisted (query, passage) pair together and reorders for precision. Compare the two orders below.

This page loads both models (~130 MB combined, cached after first load). Both run on WebAssembly β€” no WebGPU required.

The left column is what embeddings alone would return; the right column is after the cross-encoder rereads the shortlist. When the top result changes, that's stage 2 earning its keep β€” the reranker is slower per pair, which is exactly why you only run it on the shortlist the retriever already narrowed down.

← Wild Β· Back to mxbai-rerank Β· Related: GTE embeddings β†’