Get structured LLM outputs via Pydantic schema validation
Instructor is a library for getting structured outputs from LLMs using Pydantic models. Define a Pydantic class as your schema, and Instructor handles validation, retries, and streaming for any LLM provider. It supports OpenAI, Anthropic, Google, Cohere, and local models. The simplicity of "define a schema, get structured data" has made it one of the most adopted LLM utility libraries.
No reviews yet. Be the first!