Instructor
LightweightStructured extraction library that patches LLM clients to return Pydantic models. Simple API for reliable structured output with automatic retries and validation.
by Jason Liu9.6k starsMITUpdated Apr 2026
Installation
Install
pip install instructorLanguage support
PythonTypeScriptRubyGoElixir
Supported LLMs
OpenAIAnthropicGoogleMistralCohereOllama
Features (8)
structured_outputretriesvalidationstreamingpartial_responsesmulti_modalhooksbatchSource
View on GitHubDetails
- Author
- Jason Liu
- Category
- Lightweight
- Languages
- 5
- Features
- 8
- Stars
- 9.6k
- License
- MIT
- Status
- Community