JSON output schemas for LLMs
JSON Schemas to get structured answers from a model: extracting invoices, CVs, tickets.
- [q0zn5w] JSON schema: classify a support ticket | schema | en | MIT | https://contextetech.com/en/schemas/classify-support-ticket-q0zn5w - [k4gx7a] JSON schema: extract a resume | schema | en | MIT | https://contextetech.com/en/schemas/extract-resume-k4gx7a - [886j6b] JSON schema: extract a U.S. invoice | schema | en | MIT | https://contextetech.com/en/schemas/extract-us-invoice-886j6b
JSON schema: classify a support ticket
JSON Schema to classify a support ticket: category, priority, sentiment, one-sentence summary and next action for the support team.
JSON schema: extract a resume
JSON Schema to extract a resume with an LLM: experience, skills, education and certifications. Leaves out age, photo and other protected data.
JSON schema: extract a U.S. invoice
JSON Schema to extract a U.S. invoice with an LLM: vendor, invoice number, dates, line items, subtotal, sales tax and total in USD.
What is an output schema?
An output schema is a JSON Schema describing exactly the shape of the expected answer: which fields, which types, which are required. Recent models can follow it (structured outputs).
Guide: Output schemas →