Multi-model · 58.6 MB Ultra-Compact Retrieve-then-Rerank Studio

58.6 MB Retrieve + Rerank: mxbai-embed-xsmall-v1 → MS MARCO MiniLM-L-12-v2

Chain Stage 1: mixedbread-ai/mxbai-embed-xsmall-v1 (24.45 MB q8 WASM, 384-d bi-encoder Top-K recall) into Stage 2: Xenova/ms-marco-MiniLM-L-12-v2 (34.20 MB q8 WASM, 12-layer cross-encoder reranker) to measure live Spearman ρ, rank-shift deltas (↑+3, ↓-2), and Top-1 corrections completely offline.

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

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

Stage 2 · Xenova/ms-marco-MiniLM-L-12-v2 (34.20 MB)

2. Live bi-encoder shortlist vs 12-layer cross-encoder reranking

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

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

    Stage 2 · MS MARCO MiniLM-L-12-v2 (12-Layer 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 bi-encoder 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-L-12-v2 Stage 2 logit scoring (worker.js)
      Show the code: two-stage rank shift & Spearman correlation calculation (marco-core.mjs)