DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to use Instructor: what you can do with it

What is Instructor? Instructor gets reliable structured JSON out of LLMs. You define a Pydantic model, call `instructor.from_provider` with any major provider such as OpenAI, Anthropic, Google, Groq or local Ollama, and get back a validated, typed object, with automatic retries when validation fails.

How do I use it? Install with pip install instructor; then Define a Pydantic BaseModel with the fields you want; create a client with Instructor.from_provider("openai/gpt-4o-mini"). Full steps below.

Trended earlier

View repo on GitHub

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer

3 use cases

Quick start with Instructor

  1. Check you have what it needs: Python with pip, uv or poetry; An API key for your provider, or a local Ollama install; Basic Pydantic knowledge.
  2. Open 567-labs/instructor on GitHub and read the README and license.
  3. Install with pip install instructor
  4. Define a Pydantic BaseModel with the fields you want
  5. Create a client with Instructor.from_provider("openai/gpt-4o-mini")
  6. Call client.chat.completions.create with response_model set to your model and print the result

These steps come from our top use case, Turn free text into a validated Pydantic object, which also has a copy-paste agent prompt.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for 567-labs/instructor

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Best AI repos for Software and DevOps

About this repo

Requirements

  • Python with pip, uv or poetry
  • An API key for your provider, or a local Ollama install
  • Basic Pydantic knowledge

Add this badge to your README

Maintain Instructor? Show readers where to find these use cases. Use cases on Deduped

Markdown

[![Use cases on Deduped](https://dedupedai.com/badge/567-labs/instructor.svg)](https://dedupedai.com/use-cases/567-labs-instructor/?utm_source=github&utm_medium=badge&utm_campaign=567-labs-instructor)

HTML

<a href="https://dedupedai.com/use-cases/567-labs-instructor/?utm_source=github&amp;utm_medium=badge&amp;utm_campaign=567-labs-instructor"><img src="https://dedupedai.com/badge/567-labs/instructor.svg" alt="Use cases on Deduped" height="20"></a>

A static image, no tracking script. About the badge

Questions about Instructor

What is Instructor?

Instructor gets reliable structured JSON out of LLMs. You define a Pydantic model, call `instructor.from_provider` with any major provider such as OpenAI, Anthropic, Google, Groq or local Ollama, and get back a validated, typed object, with automatic retries when validation fails. It is an open-source project on GitHub: https://github.com/567-labs/instructor.

How do I use Instructor?

Install with pip install instructor; then Define a Pydantic BaseModel with the fields you want; create a client with Instructor.from_provider("openai/gpt-4o-mini"). The use cases on this page give the full steps and a copy-paste agent prompt for each job.

Who is Instructor for?

Python developers who need typed data, not free text, from an LLM call.

What can I do with Instructor?

3 use cases so far, for example: Turn free text into a validated Pydantic object; Run the same extraction on OpenAI, Anthropic or local Ollama; Retry automatically when the LLM output fails validation. Each has steps and a copy-paste agent prompt.

What do I need to run Instructor?

Python with pip, uv or poetry; An API key for your provider, or a local Ollama install; Basic Pydantic knowledge.

What are alternatives to Instructor?

Other hot AI repos in Software and DevOps: Deep Infer, Thinkrail, ECC, Aider, LM Evaluation Harness.

Is Instructor safe to run?

Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.