β
Stage 1 ranks all corpus passages by 384-d cosine similarity; Stage 2 BERT-Large WWM extracts the best grounded span or abstains corpus-wide.
multi-model Β· 372.4 MB dense retrieval β 24-layer SQuAD 2.0 RAG Β· Apache-2.0 + CC-BY-4.0
Chain two independent WebAssembly q8 models totaling ~372.4 MB
with zero server calls: Stage 1 embeds your query and knowledge corpus with
../all-minilm-l12-v2/worker.js (Xenova/all-MiniLM-L12-v2,
34.73 MB, Apache-2.0) to shortlist Top-K passages, then Stage 2 reads each
shortlisted passage with 24-layer
onnx-community/bert-large-uncased-whole-word-masking-squad2-ONNX (337.67 MB,
CC-BY-4.0) to extract a cited span β or abstain corpus-wide when no passage answers the query.
Initialise Stage 1 (all-MiniLM-L12-v2) and Stage 2 (BERT-Large WWM SQuAD 2.0) above to run local Open-Book RAG.
.txt / .md / .csv / .json document to append to the live corpus.
β
Stage 1 ranks all corpus passages by 384-d cosine similarity; Stage 2 BERT-Large WWM extracts the best grounded span or abstains corpus-wide.
CSS.highlights)