Free module
Structured output from models
Learn structured output from models hands on: ask for JSON, check it against a schema, repair bad answers and turn text into records.
The lessons
Each lesson is free to read in full. Create a free account to run its commands in a live lab and to sit its quizzes and tasks.
1 · Container lab
How to ask a model for JSON
I can ask for an answer in a shape my program can read.
Read the lesson2 · Container lab
How to validate JSON against a schema
I can check a JSON record against a schema and list every fault.
Read the lesson3 · Container lab
How to repair a bad model answer
I can retry a bad answer with the error as feedback, a few times and no more.
Read the lesson4 · Container lab
How to extract data from text
I can turn a paragraph into a record without inventing a value.
Read the lesson5 · Container lab
How to classify text with a model
I can label text from a fixed list and measure how often the labels are right.
Read the lesson6 · Container lab
How to build a text to records pipeline
I can build a small pipeline from messy text to checked records.
Read the lesson
Worked in a real lab
Every lesson of this module is worked in a lab started for you alone. The labs it uses:
Teaching a class? Set this module for your students with a teacher guide, marked assignments and a lab for every student.