Helps programs get neat, checked data back from AI chat models instead of loose text.
Your data
Your choice: device or online
Coding needed
Developers only
Cost
Free, but needs an AI account
Runs on
Mac, Windows, Linux
Computer
An ordinary computer is fine
Can run on your device
Drafted with AIWidely usedMostly for developers
What it does
Instructor is a Python code library for getting structured data out of AI language models. A programmer describes the shape of the information they want, such as a name and an age, and Instructor asks the model and returns it in that exact form.
If the answer doesn't fit the expected shape, it automatically asks the model again. It can also stream partial answers and handle data with several layers.
The same code works with many AI providers, including OpenAI, Anthropic and Google, and with local models through Ollama.
Who it's for
Python developers who need reliable, structured answers from AI models in their apps.