Project
A job-posting extractor that never returns broken JSON
A small CLI that turns any job posting into a validated record: title, seniority, must-have skills, nice-to-haves and location.
- Define the schema first. A Pydantic or Zod model with every field required and nullable where unknown.
- Collect twenty postings from different industries and save them as text fixtures.
- Prompt for structured output and validate every response against the schema; on failure, retry once with the validation error in the prompt.
- Report the failure rate before and after the retry, and write down which postings broke it and why.