Multi-model · 71.1 MB Unified ALiBi Retrieve-then-Rerank Pipeline

71.1 MB End-to-End ALiBi RAG: Jina v2 Small EN → Jina Reranker v1 Turbo EN

Chain Stage 1: Jina Embeddings v2 Small EN (32.77 MB q8 WASM, 4K ALiBi bi-encoder) to shortlist Top-K candidates across long documents, then feed that shortlist into Stage 2: Jina Reranker v1 Turbo EN (38.30 MB q8 WASM, 8K ALiBi cross-encoder) to re-score with full query-passage cross-attention.

1. Load both ALiBi stages (71.1 MB total WASM q8)

Stage 1 · Jina v2 Small EN Bi-Encoder (32.77 MB)

Stage 2 · Jina Reranker v1 Turbo EN Cross-Encoder (38.30 MB)

2. Side-by-side: Stage 1 Bi-Encoder vs Stage 2 Cross-Encoder

Stage 1 · Jina v2 Small EN (Cosine Top-K)

Load Stage 1 to embed the corpus.

    Stage 2 · Jina Reranker v1 Turbo EN (Logits)

    Waiting for Stage 1 shortlist…

      Rank Shift Ledger (Promotions & Demotions)

      Comparison of Stage 1 cosine rank versus Stage 2 cross-encoder rank
      Document Stage 1 Cosine Stage 2 Logit Sigmoid σ(z) Shift
      Run both stages above to inspect live rank promotions and demotions.

      Show the code

      Show the code: Spearman ρ correlation & Stage 1 → Stage 2 rank-shift ledger
      Show the code: Stage 2 epoch-guarded AutoTokenizer + AutoModelForSequenceClassification loader