instructor

Package — LLM/AIPython 3.7+Advanced

Structured outputs from LLMs using Pydantic models

Quick Info

Documentation
Official Docs
Python Version
3.7+
Dependencies
openai, pydantic, docstring-parser, tenacity
Install
pip install instructor

Learn by Difficulty

Quick Example

python
# Install: pip install instructor
import instructor

# Basic instructor usage
print(f"Using instructor")
# See documentation for detailed examples

instructor is a third-party package. Structured outputs from LLMs using Pydantic models. Install with: pip install instructor

Try in Playground

Tags

packagellmaigenerative-aiagents