Multi-model Β· paraphrase-multilingual-mpnet-base-v2 (295.7 MB q8 Β· Apache-2.0) β†’ mDeBERTa-v3 Multilingual NLI (355.0 MB q8 Β· MIT)

Cross-Lingual Retrieval + NLI Claim Verification (650.7 MB Total)

Dense bi-encoders retrieve topically matching passages across languages β€” including ones that contradict your claim. Chain Stage 1 (Xenova/paraphrase-multilingual-mpnet-base-v2) to retrieve the top-k hits, then Stage 2 (reusing ../../mdeberta-v3-base-xnli-multilingual-nli-2mil7/worker.js) to verify whether each passage Supports or Contradicts.

1. Two independent on-device models (650.7 MB total)

Stage 1 Β· paraphrase-multilingual-mpnet-base-v2 (295.7 MB)

Uses ../worker.js β€” WASM q8 768-d XLM-RoBERTa mean-pooled semantic retrieval across 50+ languages.

Stage 2 Β· mDeBERTa-v3 Multilingual NLI (355.0 MB)

Reuses ../../mdeberta-v3-base-xnli-multilingual-nli-2mil7/worker.js β€” WASM q8 3-way entailment / neutral / contradiction verification.

2. Retrieve Shortlist (Stage 1) β†’ Verify Claim (Stage 2)

Initialise both stages above to run Cross-Lingual Retrieval + NLI Claim Verification.

Evidence Verdict: Run both stages above to separate supporting hits from contradictions.
Stage 1 Top Hit–
Supporting Hits–
Contradictions–
Stage 1 / Stage 2 ms–
NaN count (S1 / S2)–

Stage 1 Β· Cosine Retrieval Shortlist

Run Stage 1 to inspect semantic cosine retrieval order.

Stage 2 Β· mDeBERTa-v3 NLI Verification

Run Stage 2 to classify each shortlist hit as Supports, Neutral, or Contradicts.

3. Combined Evidence Verification Ledger

Stage 1 retrieval cosine paired with Stage 2 NLI entailment and contradiction probabilities
Rank Script S1 Cosine S2 Entail S2 Contra Verdict Passage
Run the 2-stage pipeline above to populate the verification ledger.

4. Inspect reused Stage 2 client & verdict logic

Show the code Β· mpnet-multi.js β€” MdebertaNliClient
Show the code Β· mpnet-multi-core.mjs β€” computeRetrievalNliVerdict()

References