cyberneticlibrary

Extract validated structured data reliably

instructorskillsetup L29,423
Orchestra-Research/AI-Research-SKILLs
What it does

Extract structured data from LLM text using Pydantic validation and retry logic

Best for

Extraction tasks where you want automatic validation and retry without building your own harness.

Inputs
  • · prompt
  • · Pydantic model class
  • · raw LLM response
Outputs
  • · validated structured object
Requires
  • · instructor
  • · pydantic>=2.0
  • · LLM API
Preconditions

Pydantic model well-defined; LLM supports function calling or JSON mode

Failure modes

Model validation fails on unexpected LLM output; retry loop infinite on unconstrained prompt

Trust signals
  • · Pydantic integration
  • · Function-calling fallback
  • · Retry with backoff