← Showcases

Hybrid Search & Rerank Workbench

About & Code

Standalone App & PWA

Opens on its own origin so you can install it as a standalone desktop/mobile PWA (uses its own separate local model cache).

Open rag.webai.show ↗

Staying on webai.show shares MiniLM & MS MARCO weights across all showcases and model pages.

1 · Chained Local Workers (Shared Cache Storage · ~46 MB Total)

Stage 1 · all-MiniLM-L6-v2 Bi-Encoder (~23 MB · q8 WASM · 384-d)

Stage 2 · MS MARCO MiniLM-L-6-v2 Cross-Encoder (~23 MB · q8 WASM)

2 · Interactive Hybrid Retrieval, 2D Semantic Constellation & Rank-Shift Studio

BM25 lexical baseline ready. Initialise Stage 1 & Stage 2 above to run full neural retrieval.

2D Semantic Constellation · 384-d PCA + Cosine Beams

Hover, click, or step through chunks with Arrow keys to cross-link the constellation, bump chart, and passages.

3-Stage Rank-Shift Bump Chart · BM25 → Dense → Rerank

Hybrid Fusion Lab · Instant Live Re-Ranking

60% dense / 40% BM25
k = 60

Rescued: Load Stage 1/2 to measure neural rank lift

Lexical decoy: Load Stage 1/2 to inspect demotions

Corpus Chunks—
BM25 Lexical—
Stage 1 Bi-Encoder—
Stage 2 Reranker—
PCA Variance (2D)—
Rank Agreement—

Highlighted words show exact BM25 lexical term matches

signature showcase · hybrid rag pipeline · BM25 + all-MiniLM-L6-v2 + MS MARCO MiniLM · ~46 MB total · 100% local

See why production RAG chains BM25 Lexical → 384-d Bi-Encoder Embeddings → Cross-Encoder Neural Reranking. Every cosine vector, 2D PCA semantic star map, Reciprocal Rank Fusion sweep, and relevance logit runs live inside your browser in two isolated WASM Web Workers (~46 MB total) with zero bytes uploaded.

Inspect the Retrieval, PCA Projection & Worker Serialization Code

Show Okapi BM25 lexical scorer (workbench-core.mjs)
Show deterministic power-iteration 2D PCA & query projection (workbench-core.mjs)
Show Reciprocal Rank Fusion & linear alpha-blend engine (workbench-core.mjs)
Show FIFO-serialized lifecycle-safe worker client (workbench.js)

Architecture & Honest Trade-Offs

~46 MB Total · Zero WebGPU Required

Both 6-layer MiniLM ONNX checkpoints are INT8 quantized (~23 MB each) and run cleanly on standard WebAssembly CPU threads in isolated Web Workers, reusing the exact Cache Storage keys from their standalone pages with zero duplicate downloads.

Why Bi-Encoders & Cross-Encoders Pair Together

all-MiniLM-L6-v2 embeds the corpus once and caches 384-d unit vectors so new queries embed in ~15 ms. MS MARCO MiniLM-L-6-v2 then reads each [CLS] query [SEP] passage [SEP] pair jointly, resolving negations and lexical traps that cosine similarity alone misses.

Corpus-Fixed 2D PCA Projection

Power-iteration PCA computes exact 384-d orthonormal axes over the corpus embeddings, then projects the live query vector into that fixed basis. Swapping queries moves only the Query Star while document neighborhoods stay spatially anchored.

Honest Scaling Limits & Zero-Upload Privacy

Custom pasted or uploaded corpora are capped at 48 chunks and cross-encoded in FIFO batches of 32 so every chunk receives a real relevance logit while keeping browser WASM latency responsive. Every document, clause, and benchmark export stays strictly inside browser memory.