Run the canonical two-stage search pipeline completely in your browser: Stage 1
reuses ../multilingual-e5-small/worker.js (384-d dense bi-encoder with
query:/passage: prefixes) to retrieve a Top-K shortlist, then
Stage 2 (Xenova/bge-reranker-large) reads every shortlisted pair
jointly to reorder by true cross-encoder relevance.
1. Two independent on-device models (698.47 MB combined)
Show the code Β· bge-reranker-large.js β MultilingualE5ClientShow the code Β· bge-reranker-large-core.mjs β computeRankShifts()Show the code Β· bge-reranker-large.js β drawRankShiftWaterfallCanvas()