Multi-Model · Ultra-Snappy 46 MB 2-Stage Hybrid Search · WASM q8

Arctic XS Bi-Encoder Recall → MS MARCO MiniLM Cross-Encoder Rerank

Combine two ultra-compact on-device neural search models totaling ~46 MB: Stage 1 embeds the query and passages independently with Snowflake/snowflake-arctic-embed-xs (22.97 MB CLS bi-encoder) for fast recall, then Stage 2 re-reads each shortlisted query–passage pair jointly with Xenova/ms-marco-MiniLM-L-6-v2 (23.1 MB cross-encoder). The bump chart shows exactly where the cross-encoder agrees, where it lifts a relevant passage past a lexical decoy, and where (try the negation preset) both stages still get it wrong.

1. Independent model stages

Stage 1 · Bi-Encoder Recall (22.97 MB q8 WASM)

Stage 2 · Cross-Encoder Reranker (23.1 MB q8 WASM)

Checking browser cache for Stage 1 (Snowflake Arctic Embed XS) and Stage 2 (MS MARCO MiniLM)…

2. Run 2-stage hybrid search

Stage 1 Latency –
Stage 2 Latency –
Stage 1 Top-1 –
Stage 2 Top-1 –
Max Promotion –
Relevant in Top-2 –
Total Payload 46.1 MB q8

3. Rank-Shift Bump Chart (Stage 1 → Stage 2)

Stage 1: Arctic XS (CLS Cosine Recall)

    Stage 2: MS MARCO MiniLM (Cross-Encoder Logit)

      4. Rank-shift computation

      Show the code — arctic-core.mjs computeRankShifts