← All models · Multilingual QA

use case · multi-model

Multi-model: retrieve the paragraph, then read the answer — across languages

Extractive QA works on one passage at a time, but real documents are long — and multilingual. The fix is retrieve-then-read: the multilingual MiniLM embedder first finds the paragraph most likely to hold the answer (even if it's in a different language from the question), then XLM-RoBERTa extracts the exact span from just that paragraph. Two small models compose into open-document, cross-lingual QA — on-device RAG. Both run locally; nothing is uploaded.

This page loads two models (~118 MB embedder + ~295 MB reader). Both auto-initialise when cached. Once ready, the pipeline splits your document into paragraphs, retrieves the best one, then answers from it.

Retriever · multilingual MiniLM

Reader · XLM-RoBERTa SQuAD2

This is cross-lingual RAG in miniature: the embedder narrows a big, multi-language document to the relevant chunk regardless of language, and the reader pins the exact answer. Swap the reader for a generative LLM and you have the architecture behind "chat with your docs" — except here it's on-device and speaks every language the two models share.

← Wild · Multilingual QA