Home Projects instructor
instructor
Python

instructor

structured outputs for llms

by 567-labs · GitHub
Stars
Forks
License
Created
Last commit
Category
Language
openaiopenai-function-calliopenai-functionsMITPython
View on GitHub
In plain words

Instructor makes LLMs return validated, typed structured data using Pydantic models, with automatic retries when validation fails.

From the README

Install
pip install instructor

Excerpts from the project README on GitHub. Copyright and licensing remain with the respective authors.

You maintain this project?

Claim its page: indexed whatever its rank, translated into six languages, and enriched with what you write yourself.

Claim this page →
instructor — GitHub preview card
📈 Star history
14k13k
2026-06-282026-08-31
📈 Track instructor

Get an email alert on its next release or when it starts trending — never miss the moment.

Free · no card · unsubscribe anytime
Get email alerts →
📄 About

structured outputs for llms

instructor has 13.8k stars on GitHub. It has been forked 1.2k times. instructor is written mainly in Python. It has been in active development since 2023. instructor is available under the MIT license. Its main topics are openai, openai-function-calli, openai-functions, pydantic-v2.

Read the full guide
Frequently asked questions

What is instructor?

structured outputs for llms

Is instructor open source?

instructor is an open-source project. It is released under the MIT license.

Is instructor free?

Yes. instructor is free and open source — you can use, modify and self-host it.

What license does instructor use?

instructor is available under the MIT license.

What language is instructor written in?

instructor is written mainly in Python.

🏅 Maintainer of this project?
olud.ai badge — instructor

Add this live badge to your README — your GitHub stars and directory rank, refreshed daily.

[![olud.ai](https://olud.ai/badge.php?tool=567-labs-instructor)](https://olud.ai/project/567-labs-instructor.html)
More badge options →
🧬 Related projects