—
Stage 1 will rank every document by 384-d cosine similarity, then Stage 2 will read the top-K passages.
multi-model · open-book multi-document QA · MiniLM (23 MB) → TinyRoBERTa-SQuAD2 (82.1 MB)
True zero-server retrieval-augmented QA chaining two independent on-device models:
Stage 1 embeds your question and document library with
Xenova/all-MiniLM-L6-v2 (23.0 MB q8 WASM, Apache-2.0, reusing
../minilm-embeddings/worker.js) to retrieve the top-K matching passages, and
Stage 2 reads each retrieved passage with
onnx-community/tinyroberta-squad2-ONNX (82.14 MB q8 WASM, CC-BY-4.0)
to extract the highest-confidence cited span — or honestly abstain across the entire library
when no document answers the question.
Xenova/all-MiniLM-L6-v2 · 384-d mean-pooled L2-normalized vectors.
onnx-community/tinyroberta-squad2-ONNX · SQuAD v2 span extraction + abstention.
.txt or .md document to the live library (100% local).
Initialise both Stage 1 (MiniLM) and Stage 2 (TinyRoBERTa-SQuAD2) above to run Open-Book QA.
—
Stage 1 will rank every document by 384-d cosine similarity, then Stage 2 will read the top-K passages.