Intermediate · Building on model APIs
Structured output
Hold the bicycle repair shop's assistant to JSON its calendar can take: a JSON Schema validator for the keywords the shop uses, replies checked and asked for again with their errors, constrained decoding that masks every token that can't continue a valid reply, a review of an assistant's extractor, and an extractor that turns the shop's emails into bookings.
- You build
- schema.py, then extract.py, then constrain.py, then bookings.py, then inbox.py
- Stages
- 3 Build, 1 Catch, 1 Ship
- Time
- About 3.5 hours
- Runs on
- Your machine
Loading the workspace…
Loading the workspace…