—
Ask a question once the model is ready to compare top span probability against SQuAD v2 null probability P(<s>).
question-answering · 12-layer RoBERTa-Base · SQuAD v2 abstention · WASM q8 · 125.26 MB · CC-BY-4.0
The full 12-layer, 125M-parameter RoBERTa-Base extractive question-answering model
(deepset/roberta-base-squad2 via onnx-community/roberta-base-squad2-ONNX)
running 100% locally in WebAssembly. With twice the encoder depth of 6-layer distilled readers,
RoBERTa-Base SQuAD2 excels on multi-clause technical RFCs, legal indemnity provisions, clinical notes,
and subtle entity-swap traps — routing unsupported queries to the <s> null token
so your app can honestly abstain.
onnx/model_quantized.onnx)
License notice: Model weights are licensed under CC-BY-4.0
(upstream deepset/roberta-base-squad2, quantized ONNX export by
onnx-community/roberta-base-squad2-ONNX). Inference runs off the main thread in a FIFO
Web Worker using pipeline("question-answering", "onnx-community/roberta-base-squad2-ONNX", { device: "wasm", dtype: "q8" })
paired with a shared-model logit pass for exact <s> null probability.
.txt or .md document here (stays 100% on-device, max 256 KB).
Initialise RoBERTa-Base SQuAD2 above to extract grounded answer spans or detect subtle unanswerable traps.
—
Ask a question once the model is ready to compare top span probability against SQuAD v2 null probability P(<s>).
Exact character offsets highlighted via semantic <mark> nodes (or left clean when abstained).
Click any candidate span to highlight its exact location in the source passage.
Inspect raw start/end logits vs <s> null logit and sweep a 6-probe SQuAD v2 calibration curve.
Batch-extract fields from RFC, security, and SLA specs with ABSTAINED flags and RFC 4180 CSV/JSON exports.
Edit clauses or numbers live to watch confidence collapse into abstention, plus a sentence coverage heat-map.
Chain MongoDB LEAF asymmetric IR (23.2 MB) into 12-layer RoBERTa-Base SQuAD2 (125.3 MB) for open-book QA.
Inspect the exact vanilla ES module functions powering this route — no build step, no bundler, no hidden API calls.
worker.js · ensureLoaded() (lines 76–118)roberta-qa-core.mjs · decideAbstention() (lines 189–216)