01Chapter 1: What information extraction coversInformation extraction turns free-form text into structured data. A document may contain useful facts, but those facts are mixed with grammar, formatting, and irrelevant details. An extraction system identifies the facts you need and returns them in a predictable form.3 min read
02Chapter 2: Defining the schema and labeling rulesAssume you know basic Python, JSON, language models, and introductory precision, recall, and F1. This chapter focuses on the contract that an extraction system must follow before you prompt or train a model.3 min read
03Chapter 3: Building a gold datasetAssume you know basic Python, JSON, language models, and introductory precision, recall, and F1. This chapter shows how to create a gold dataset, a collection of text examples with carefully checked answers. The dataset becomes the reference for evaluating prompts and trained models.3 min read
04Chapter 4: Measuring extraction quality with span-level F1This chapter assumes you know basic Python, JSON, language-model concepts, and introductory precision, recall, and F1. We will focus on extraction tasks where the system returns spans: a start position, an end position, and a label.2 min read
05Chapter 5: Extracting with zero-shot and few-shot promptsThis chapter assumes Basic Python, familiarity with JSON, a basic idea of language models, and introductory precision, recall, and F1. The goal is to use a general-purpose language model for information extraction without training a new model.2 min read
06Chapter 6: Getting reliable structured output and validating itAssume you know basic Python and JSON, and you understand precision, recall, and F1. This chapter focuses on a practical boundary: an LLM produces text, but your application needs trustworthy structured data.2 min read
07Chapter 7: How prompted extraction failsThis chapter assumes you know basic Python, JSON, language-model concepts, and introductory precision, recall, and F1. The focus is diagnosis: identifying whether a prompted extractor failed because of the prompt, the input, the model, or the validation layer.3 min read
08Chapter 8: Fine-tuned token classifiers and BIO tagsThis chapter assumes that you know basic Python, JSON, language-model concepts, and introductory precision, recall, and F1. It focuses on token classification: training a model to assign a label to each token in a text.2 min read
09Chapter 9: Fine-tuning generative models for extractionAssume you know Python, JSON, and the basic meaning of precision, recall, and F1. This chapter focuses on causal language models: models that generate text one token at a time. Fine-tuning teaches such a model to produce a particular extraction format for a particular domain.2 min read
10Chapter 10: Analyzing errors by categoryThis chapter assumes you know how to define an extraction schema, create gold annotations, and calculate span-level precision, recall, and F1. The goal now is to explain why an extraction system fails. A single F1 score tells you how often the system is wrong, but error categories tell you what to2 min read
11Chapter 11: Comparing cost, latency and maintenanceAssume you know basic Python, JSON, language models, and introductory precision, recall, and F1. This chapter focuses on operating an information-extraction system after you have defined its schema and measured its quality.3 min read
12Chapter 12: Combining both approachesThis chapter assumes that you know JSON, basic Python, and introductory precision, recall, and F1. It also assumes that you understand the difference between a general-purpose language model and a model trained for one task.2 min read
13Chapter 13: Choosing between prompting and fine-tuningThis chapter assumes that you know basic Python and JSON, understand what a language model does, and know the introductory definitions of precision, recall, and F1. You also need a labeled evaluation set before making a reliable choice.3 min read