Ship the Extractor
the full pipeline
Part of: Structured JSON Extractor
Time to assemble the pieces into one function you can point at any messy text and trust the output. Everything you built (schema prompt, brace-slicing, repair, validation, normalization) collapses into a single extract(text) that returns a clean record and a status. This is the deliverable. The pipeline, end to end One entry point, three honest outcomes: COMPLETE, INCOMPLETE, or PARSE ERROR. The caller always gets a full-shaped record and a status, never a crash. Make it a real tool Wrap it in a small CLI so anyone can run it: Now cat email.txt python extractor.py prints validated JSON. That's shippable. It runs from a clean start with one command, handles empty and malformed input without crashing, and its output is documented by the schema. What "done" means here - Every input yields a full-shaped record, never a missing key. - Bad extractions are labeled (INCOMPLETE, PARSE ERROR), not silently wrong. - Someone else could run it from your instructions alone. It lands in your Portfolio Finishing this lesson saves the Structured JSON Extractor to your Portfolio tab: a real tool that turns messy contacts and invoices into JSON you can trust. Keep a sample input and its output next t
Challenge: End-to-End Extract