Multi-model · 47.2 MB Two-Stage Retrieve + Rerank Pipeline

47.2 MB Hybrid Search: mxbai-embed-xsmall-v1 → MS MARCO Cross-Encoder

Pair Stage 1: mixedbread-ai/mxbai-embed-xsmall-v1 (24.45 MB q8 WASM bi-encoder) for fast Top-K recall with Stage 2: Xenova/ms-marco-MiniLM-L-6-v2 (22.7 MB q8 WASM cross-encoder, chosen over Mixedbread's ~90 MB DeBERTa reranker to keep the combined pack at 47.2 MB) to inspect live Spearman ρ and rank-shift badges (↑+1, ↓-1).

1. Load both stages (47.2 MB total WASM q8)

Stage 1 · mixedbread-ai/mxbai-embed-xsmall-v1 (24.45 MB)

Stage 2 · Xenova/ms-marco-MiniLM-L-6-v2 Cross-Encoder (22.7 MB)

2. Live bi-encoder recall vs cross-encoder rank shifts

Stage 1 · mxbai-embed-xsmall-v1 Top-K (Bi-Encoder)

Load Stage 1 to embed the corpus and shortlist Top-K candidates.

    Stage 2 · MS MARCO MiniLM Rerank (Cross-Encoder)

    Load Stage 2 to score joint (query, candidate) cross-attention logits.

      Rank-Shift Bump Chart

      Rank-shift comparison table

      Comparison of Stage 1 cosine rank and Stage 2 cross-encoder rank
      Document Stage 1 mxbai cos Stage 2 Logit Prob Shift
      Run both stages above to inspect live rank promotions and demotions.

      Show the code

      Show the code: MS MARCO MiniLM cross-encoder Stage 2 logit scoring (reranker-worker.js)
      Show the code: two-stage rank shift & Spearman correlation calculation (xsmall-core.mjs)