Question Answering
A search engine returns ten links. A question answering system returns the answer. The task is defined by that output shape — a span of text, a short string, a sentence — rather than by a ranked list of documents you are expected to read yourself.
The shapes it comes in
- Extractive, also called reading comprehension: the answer is a contiguous span inside a supplied passage, and the model predicts its start and end positions. SQuAD is the canonical benchmark, and its second version adds questions the passage does not answer, so a system must also know how to decline.
- Open-domain: no passage is supplied. A retriever finds candidate passages over a corpus such as Wikipedia and a reader pulls the answer out of them. Dense retrieval displaced BM25 in this role because a question and its answer passage rarely share many words.
- Generative: the model writes the answer rather than pointing at it, which buys fluent paraphrase and brings the risk of a confident invention.
Scoring, and where it breaks
Extractive systems are scored by exact match and token-level F1 against human answers — a pairing that exists because EM alone punishes "in April 1912" for not being "April 1912". The hard cases are the honest ones: questions needing evidence from two passages, questions whose premise is false, and questions the corpus simply does not answer. Abstention is the capability that separates a usable system from a dangerous one, because a fluent wrong answer is harder to catch than a blank.
Why it matters
QA is the interface layer over everything else — extraction, retrieval, representation — and the component that grounds a retrieval-augmented assistant in a document you can check.
Question answering is the task of returning an answer to a natural-language question rather than a list of documents. In the extractive form the answer is a span inside a supplied passage, located by predicting start and end positions; in the open-domain form a retriever finds the passage first. Systems are scored by exact match and token F1 against human answers, and the decisive capability is abstaining when the text holds no answer.
Ask a librarian where the 1912 shipping records are kept and you get pointed at a shelf. Ask them what year the Titanic sank and you get "1912". Question answering is software doing the second thing: you ask in ordinary words and it hands back the answer, not ten links to go and read for yourself. Usually it works in two moves — find the passage that should contain the answer, then point at the exact few words inside it that do. The hard part is not finding an answer. It is recognising when the text does not contain one, and saying so instead of making something up that sounds right.