Multi-model · 46.0 MB Two-Stage Hybrid Retrieve + Rerank Studio

46.0 MB Hybrid Search: MDBR-LEAF-MT → MS MARCO Cross-Encoder

Pair Stage 1: MongoDB mdbr-leaf-mt (23.27 MB q8 WASM bi-encoder) for fast Top-K candidate recall with Stage 2: MS MARCO MiniLM-L-6-v2 (22.7 MB q8 WASM cross-encoder) to inspect live cross-attention reranking, Spearman ρ, and rank-shift badges (↑+1, ↓-1).

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

Stage 1 · MongoDB/mdbr-leaf-mt Bi-Encoder (23.27 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 · MDBR-LEAF-MT 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 LEAF-MT 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 (mt-core.mjs)