extracting-structured-data
Extracts structured data — fields, tables, line items — out of documents into a validated schema using the gaik toolkit, and designs schemas that stay inside provider limits and produce checkable evidence. Use when pulling fields from invoices, forms, contracts, reports, or scanned documents into JSON or a Pydantic model; when an extraction request fails with a 400, returns a truncated list, or silently drops its deepest fields; when deciding whether to parse a document first or feed the PDF straight to the model; when adding page numbers, quotes, or confidence scores as evidence; or when extraction accuracy needs to be measured rather than guessed. Covers schema design, property limits, prompt-versus-schema tuning, and citation verification.
Pinned to revision 38ea98a20a33, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/extracting-structured-data/SKILL.md
- skills/extracting-structured-data/references/measuring-extraction.md
Every link opens the file at its source, pinned to the revision this page describes.