—
Ask a question once the model is ready to compare top span probability against SQuAD v2 null probability P(<s>).
question-answering · SQuAD v2 abstention · text · WASM q8 · 82.1 MB · CC-BY-4.0
A distilled 6-layer RoBERTa extractive question-answering model
(deepset/tinyroberta-squad2 via onnx-community/tinyroberta-squad2-ONNX)
running 100% locally in WebAssembly. Unlike SQuAD v1 extractors that guess a span even when the
text never mentions the answer, TinyRoBERTa-SQuAD2 routes probability mass to the
<s> null token so your app can honestly abstain instead of
fabricating citations.
onnx/model_quantized.onnx)
License notice: Model weights are distributed under
CC-BY-4.0 (upstream deepset/tinyroberta-squad2, converted to ONNX by
onnx-community/tinyroberta-squad2-ONNX). Inference runs off the main thread in a FIFO
Web Worker using pipeline("question-answering", "onnx-community/tinyroberta-squad2-ONNX", { device: "wasm", dtype: "q8" }).
.txt or .md document here (stays 100% on-device, max 256 KB).
Initialise TinyRoBERTa-SQuAD2 above to extract grounded answer spans or detect unanswerable questions.
—
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 start/end token logits, the <s> null slot, and a live 6-probe abstention calibration curve.
Run a customizable compliance checklist, flag ABSTAINED missing clauses, and export formula-safe CSV/JSON.
Delete words live to watch confidence collapse into abstention, plus a multi-question citation heat-map.
Chain all-MiniLM-L6-v2 retrieval (23 MB) into TinyRoBERTa-SQuAD2 reading (82.1 MB) across a document library.
Inspect the live vanilla ES modules powering this route — no build step, no bundler, no hidden API calls.
worker.jsqa-core.mjs