multi-model · 153.1 MB QA → NLI groundedness audit · DistilBERT Cased SQuAD → DeBERTa-v3 NLI

Extracted-Answer Groundedness & Contradiction Check

SQuAD v1.1 extractive readers cannot abstain and can be lured onto negated or missing spans. Chain two WebAssembly q8 models totaling ~153.1 MB: Stage 1 extracts the top cased span with Xenova/distilbert-base-cased-distilled-squad (65.81 MB, Apache-2.0), then Stage 2 audits that extracted answer against the source passage via ../../zero-shot-text/worker.js (Xenova/nli-deberta-v3-xsmall, 87.25 MB, MIT) to score entailment, contradiction, and unanswerability.

1 · Independent pipeline stages (~153.1 MB combined)

Stage 1 · DistilBERT Cased SQuAD (65.81 MB · Apache-2.0)

Stage 2 · DeBERTa-v3 NLI Verifier (87.25 MB · MIT)

Initialise Stage 1 (DistilBERT Cased SQuAD) and Stage 2 (DeBERTa-v3 NLI) above to run live Extracted-Answer Groundedness Verification.

2 · Extract Span (Stage 1) → Verify Groundedness & Contradiction (Stage 2)

Drop, paste, or upload a .txt / .md / .csv / .json passage to verify.
Waiting for stages

—

Stage 1 proposes the highest-scoring cased span; Stage 2 DeBERTa-v3 NLI scores support vs contradiction vs unanswerability.

Stage 1 Span Score—
Stage 1 Logit Δ—
Context Consistency—
Context Contradict—
QA Answer Relevance—
Stage 1 / Stage 2 ms—
Combined Payload~153.1 MB q8

Stage 1 Highlighted Extraction

Stage 2 DeBERTa-v3 NLI 3-Way Probabilities

3 · Show the code

Show the code — squad-cased.js Stage 2 NLI worker client (reusing ../../zero-shot-text/worker.js)
Show the code — squad-cased-core.mjs QA-to-NLI groundedness & contradiction evaluator