What problem does it solve?
Instructor makes LLM outputs reliable when you need structured information instead of free-form text. It helps you avoid brittle parsing, repeated manual cleanup, and silent schema mismatches by validating responses against typed models.
Core Features & Use Cases
- Structured extraction: Convert responses into typed records for entities, articles, reviews, company profiles, and other schema-driven data.
- Automatic validation and retry: Catch invalid fields with Pydantic, feed errors back to the model, and retry until the output matches the schema.
- Streaming and iteration: Handle partial objects and iterable results for live dashboards, incremental processing, and real-time applications.
- Multi-provider support: Use the same structured-output workflow across Anthropic, OpenAI, and local JSON-mode providers.
- Use case: A product team can extract sentiment, key points, and action items from customer feedback while ensuring every record conforms to the same validated format.
Quick Start
Ask the assistant to extract your target data into a Pydantic schema and return only the validated structured result.