hjLabs AI Playground

Starting the on-device runtime…

Ask questions about a passage, get the exact answer span

Extractive question answering does something a chat model cannot promise: it returns a span copied verbatim out of your text, with a start offset and a confidence score, so the answer is provably grounded in the source. DistilBERT fine-tuned on SQuAD is small, fast and well suited to pulling clauses out of contracts, policies and documentation. It cannot invent an answer, which is precisely the point.

question answering onlineextractive qa demosquad model browserdistilbert qadocument question answering freeanswer from passagegrounded question answering

Frequently asked questions

How is this different from asking a chatbot?

A chat model generates text and can hallucinate. An extractive QA model can only return a substring of the passage you gave it, so the answer is always traceable to the source — at the cost of never being able to synthesise across documents.

What if the answer is not in the text?

The model still returns its best span, but with a low score. Use the confidence value as a threshold and treat anything below roughly 0.2 as "not found".

Models available for this task