Skip to content

Question Answering Systems

Extractive, generative and retrieval-based question answering: how each works and how to choose.

Editorial team 2 min read

Question answering (QA) systems respond to questions in natural language. Several designs exist, with different trade-offs.

Extractive QA

The system finds the exact span of text in a document that answers the question. Answers are always grounded in the source, but can only quote what's written.

Generative QA

A language model writes an answer in its own words. Flexible and fluent, but prone to hallucination if it relies only on what it learned in training.

Retrieval-Augmented QA

Combines both ideas: retrieve relevant passages from a document collection, then have a language model answer using them, with citations. This is the standard approach for enterprise knowledge bases.

Structured Data QA

Questions over databases and spreadsheets can be answered by generating a query (such as SQL) from the question, running it, and explaining the result. Validate generated queries and restrict permissions.

Designing a Good QA System

  • Define the question types and sources you'll support.
  • Show sources with every answer so users can verify.
  • Handle "I don't know" gracefully when the information isn't available.
  • Keep content current.

Evaluation

Build a set of real questions with correct answers and source passages. Measure answer correctness, groundedness (is it supported by the sources?) and how often it correctly declines to answer.

More in Applied AI

All Applied AI guides →
Applied AI Guide · 2 min

Image Classification With Pretrained Models

Classifying images without training from scratch: choosing a pretrained model, preparing images correctly and reading the output.

Applied AI 2 min read 4 Jun 2026

Applied AI Guide · 2 min

Object Detection Explained

How object detection finds and localises multiple objects in an image, the main model families and how accuracy is measured.

Applied AI 2 min read 3 Jun 2026

Applied AI Guide · 2 min

Image Segmentation

Semantic, instance and panoptic segmentation: labelling images pixel by pixel, and where each is used.

Applied AI 2 min read 2 Jun 2026

Applied AI Guide · 2 min

Optical Character Recognition (OCR) With AI

Extracting text from images and scanned documents: how modern OCR works, where it fails and how to improve results.

Applied AI 2 min read 1 Jun 2026