01Chapter 1: What extractive question answering isThis chapter assumes basic Python, familiarity with tokenization, and a general idea of neural networks and pretrained language models. You should also understand that a transformer processes text as a sequence of tokens rather than as whole sentences or words.3 min read
03Chapter 3: Subword tokens and character offsetsThis chapter assumes basic Python, familiarity with tokenization, and a general idea of how transformer models process token IDs. You should also know that a string is a sequence of characters, while a token is a model-specific unit.2 min read
04Chapter 4: Pretrained encoders as the backboneThis chapter assumes basic Python, familiarity with tensors, and a general idea of neural networks, pretrained language models, and tokenization. You should also know that a tokenizer converts text into token IDs that a model can process.2 min read
05Chapter 5: Feeding the question and context togetherAssume you know basic Python, tokenization, and the idea of a pretrained language model. This chapter focuses on how a question-answering model receives two pieces of text as one input.2 min read
06Chapter 6: Start and end logits: the span prediction headThis chapter assumes that you know basic Python, tokenization, and the idea of a pretrained transformer encoder. You will work with PyTorch tensors and a SQuAD-style extractive question-answering model.2 min read
07Chapter 7: Your first answer with the pipelineThis chapter assumes that you know basic Python, understand that a tokenizer converts text into model inputs, and have a general idea of tensors and pretrained language models. You will use a ready-made extractive question-answering model. Extractive means that the answer is copied from the context 2 min read
08Chapter 8: Turning logits into an answer stringThis chapter assumes that you know basic Python, have seen tokenization, and understand that a transformer produces tensors of numbers. The goal is to turn a question-answering model's token scores into text copied from the context.2 min read
10Chapter 10: Questions with no answer in the textThis chapter assumes that you understand tokenization, question-context pair encoding, and start and end logits from a transformer question-answering model.2 min read
11Chapter 11: Measuring quality with exact match and F1This chapter assumes you know basic Python, tokenization, and the idea of a question-answering model that predicts a text span. We will evaluate extractive answers against SQuAD-style reference answers.3 min read
12Chapter 12: Building token-level training labelsAssume you know basic Python, tokenization, and how a pretrained transformer produces tensors. This chapter focuses on the step between SQuAD-style character annotations and the integer labels used to train a question-answering model.2 min read
13Chapter 13: Fine-tuning a model on question answering dataThis chapter assumes you know basic Python, tokenization, PyTorch-style tensors, and the difference between a pretrained language model and a neural network. It focuses on how training examples become token labels and how a transformer learns to predict answer spans.2 min read
14Chapter 14: Limitations and common failure modesAssume you know basic Python, tokenization, transformer encoders, and the meaning of start and end logits. Extractive question answering (QA) is useful because it copies an answer from a supplied context. That design also creates strict limits: the model cannot reliably answer with information that 3 min read