Question Answering

100% private — runs on your device, never uploaded. Works offline once loaded.

Paste a passage, ask a question, and an on-device model finds the answer within your text. Everything runs locally — nothing is uploaded.

Extractive question answering, on your device

This tool runs a DistilBERT model fine-tuned on the SQuAD reading-comprehension dataset. You give it a passage of context and a question, and it finds the span of text that best answers the question — extractive QA, meaning the answer is quoted from your text rather than generated from outside knowledge.

It runs entirely in your browser, so the passage you paste — a contract clause, a policy document, a research paragraph — is never uploaded.

What it is good for

Use it to pull a specific fact out of a long passage without reading all of it: a date, a name, an amount, a definition. Because the answer must exist in the context, it will not hallucinate facts the way a generative model can.

  • Find a specific detail buried in a long document
  • Answer factual questions from a policy or manual
  • Quickly check what a passage says about a topic

Limits to keep in mind

The model can only answer questions whose answer is actually present in the context you paste — it has no outside knowledge. If the answer is not in the text, or the question needs reasoning across multiple parts, confidence will be low. Provide a focused, relevant passage for best results.

Frequently asked questions

Is my text uploaded?

No — question answering runs entirely in your browser.

Can it answer general-knowledge questions?

No. It is extractive: it only finds answers that appear in the context you provide, which also means it will not make facts up.

What if the answer is not in my text?

The model will return its best guess with low confidence. Add the relevant passage for a reliable answer.

How long can the context be?

Very long contexts may be truncated; paste the most relevant section for the best result.

Why is the first run slow?

A one-time model (~65 MB) downloads and caches on first use.

Does it work offline?

Yes, once cached the model runs without an internet connection.

Advertisement