—
Stage 1 ranks all documents by 384-d cosine similarity; Stage 2 extracts exact answer spans from the shortlist.
multi-model · 91.4 MB retrieve-then-extract QA · mxbai-embed-xsmall-v1 → DistilBERT SQuAD · Apache-2.0
Chain two Apache-2.0 WebAssembly models totaling ~91.4 MB:
Stage 1 embeds your question and document library with
mixedbread-ai/mxbai-embed-xsmall-v1 (24.45 MB q8, 384-d mean-pooled
bi-encoder) to shortlist Top-K candidate passages, then Stage 2 extracts exact
[start:end] spans from each shortlisted passage with
Xenova/distilbert-base-uncased-distilled-squad (66.98 MB q8).
Initialise Stage 1 (mxbai-embed-xsmall-v1) and Stage 2 (DistilBERT Uncased SQuAD) above to run Open-Domain QA.
.txt / .md document to append it to the local knowledge base.
—
Stage 1 ranks all documents by 384-d cosine similarity; Stage 2 extracts exact answer spans from the shortlist.