Extract structured, validated data from LLMs with type-safe schemas, retries, and multi-language support.

Instructor is a powerful library for extracting structured data from Large Language Models (LLMs) across multiple programming languages like Python, TypeScript, Go, and Ruby. It supports over 15 providers, including OpenAI, Anthropic, and Google, ensuring your outputs are always validated and reliable.
Built on type-safe schemas with Pydantic, Instructor offers features like automatic retries, streaming support, and nested object handling. This makes it ideal for developers who need consistent, validated outputs from AI models without the hassle of manual error handling.
Key Features:
Start extracting structured data effortlessly with Instructor and streamline your AI-driven projects.