01Chapter 1: What information extraction coversInformation extraction (IE) turns unstructured text into structured records that a program can use. The input is free text such as an email, a contract or a news article. The output is data with a fixed shape: a list of entity spans, a set of relations, or a record with named fields.7 min read
02Chapter 2: Defining the schema and labeling rulesThis chapter assumes you can read basic Python and JSON, know roughly what a language model does, and have met precision, recall and F1. The previous chapter listed the task types: named entities, relations and key-value fields. Here you turn one of them into a precise written contract.7 min read
03Chapter 3: Building a gold datasetA gold dataset is a set of texts with reference answers that people have checked. Every number in the rest of this tutorial depends on it. Span-level F1 measures agreement with the gold labels, so errors or ambiguity in those labels flow into every score. A token-classification model also trains on 8 min read
04Chapter 4: Measuring extraction quality with span-level F1This chapter assumes you know basic Python, how precision, recall and F1 are defined, and what an extraction schema and a gold dataset are from the earlier chapters. Here you will turn those pieces into a scoring procedure. The procedure gives one comparable number for a prompted LLM and for a fine-7 min read
05Chapter 5: Extracting with zero-shot and few-shot promptsThis chapter covers how to write the prompt that turns a general-purpose language model into an extractor. It assumes you can read basic Python and JSON. It also assumes you know what a language model is and have seen precision, recall and F1. The schema and gold data come from earlier chapters. The6 min read
06Chapter 6: Getting reliable structured output and validating itThis chapter assumes you can read basic Python and JSON, and that you know what a prompted language model does. It covers the step between "the model returned some text" and "the system holds a trustworthy record". A prompted extractor can be right about the content and still break your pipeline, be6 min read
07Chapter 7: How prompted extraction failsThis chapter assumes you know basic Python, can read JSON, and understand precision, recall and F1 at an introductory level. You have seen how to write a zero-shot or few-shot extraction prompt and how to validate its output. Here you will learn the ways a prompted extractor goes wrong, how to detec6 min read
08Chapter 8: Fine-tuned token classifiers and BIO tagsThis chapter assumes you know basic Python, can read JSON, and understand precision, recall and F1 at an introductory level. It also assumes you know that a language model turns text into vectors. You do not need to have trained a transformer before.8 min read
09Chapter 9: Fine-tuning generative models for extractionThis chapter assumes you can read basic Python and JSON. It also assumes you know what a gold dataset and span-level F1 are, and how a BIO token classifier works. Earlier chapters covered all of these.7 min read
10Chapter 10: Analyzing errors by categoryThis chapter assumes you can write basic Python and read JSON. It also assumes you have a gold dataset and can compute span-level precision, recall and F1, as covered in the earlier chapters. You will learn to break an F1 score into error categories, to find out which category dominates, and to choo6 min read
11Chapter 11: Comparing cost, latency and maintenanceThis chapter assumes you have read the earlier chapters on prompted extraction and on token-classification models with BIO tags. It also assumes you can read basic Python and know what a token is. Accuracy is only one input to the decision. A system that scores 2 points higher on F1 can still be the7 min read
12Chapter 12: Combining both approachesThis chapter assumes you have read the earlier chapters in this tutorial. You should know how a gold dataset is built, how span-level precision, recall and F1 are computed, how a prompted extractor returns validated JSON, and how a token classifier produces BIO tags. The code uses only the Python st7 min read
13Chapter 13: Choosing between prompting and fine-tuningThis chapter assumes you have read the earlier chapters of this tutorial. You should know how an extraction schema and a gold set are built. You should also be able to compute span-level precision, recall and F1, and know how a prompted extractor and a BIO token classifier each work. Here we combine6 min read