β
Stage 1 ranks every document by 384-d CLS cosine similarity, then Stage 2 extracts exact answer spans or abstains.
multi-model Β· ~50 MB open-book QA Β· Arctic Embed XS (23.0 MB) β MobileBERT-SQuAD2 (26.9 MB)
Chain two ultra-compact on-device WASM models totaling ~49.9 MB:
Stage 1 embeds your question and multi-document knowledge base with
Snowflake/snowflake-arctic-embed-xs (23.0 MB q8 CLS bi-encoder,
Apache-2.0) to shortlist Top-K passages, then Stage 2 reads each shortlisted
passage with onnx-community/mobilebert-uncased-squad-v2-ONNX (26.9 MB
q8, MIT) to extract exact answer spans β or abstain corpus-wide
when no passage supports the question.
.txt or .md document to the local knowledge base (stays 100% on-device).
Initialise Stage 1 (Arctic Embed XS) and Stage 2 (MobileBERT-SQuAD2) above to run Open-Book QA.
β
Stage 1 ranks every document by 384-d CLS cosine similarity, then Stage 2 extracts exact answer spans or abstains.