{
 "schema_version": 1,
 "generated": "2026-10-31",
 "repo": "567-labs/instructor",
 "name": "instructor",
 "owner": "567-labs",
 "slug": "567-labs-instructor",
 "github": "https://github.com/567-labs/instructor",
 "what": "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.",
 "why": "14k stars, talked about in 2 AI sources we track",
 "language": "Python",
 "requirements": [
  "Python with pip, uv or poetry",
  "An API key for your provider, or a local Ollama install",
  "Basic Pydantic knowledge"
 ],
 "audience_note": "Python developers who need typed data, not free text, from an LLM call.",
 "risk": "none",
 "section": "earlier",
 "weekly_rank": null,
 "category": "Software and DevOps",
 "url": "https://dedupedai.com/use-cases/567-labs-instructor/",
 "use_case_count": 3,
 "use_cases": [
  {
   "id": "567-labs-instructor--extract-structured-data-from-text-with-instructor",
   "title": "Turn free text into a validated Pydantic object",
   "best": true,
   "url": "https://dedupedai.com/use-cases/567-labs-instructor/extract-structured-data-from-text-with-instructor/",
   "json": "https://dedupedai.com/use-cases/u/567-labs-instructor/extract-structured-data-from-text-with-instructor.json"
  },
  {
   "id": "567-labs-instructor--switch-llm-providers-with-instructor-from-provider",
   "title": "Run the same extraction on OpenAI, Anthropic or local Ollama",
   "best": false,
   "url": "https://dedupedai.com/use-cases/567-labs-instructor/switch-llm-providers-with-instructor-from-provider/",
   "json": "https://dedupedai.com/use-cases/u/567-labs-instructor/switch-llm-providers-with-instructor-from-provider.json"
  },
  {
   "id": "567-labs-instructor--auto-retry-failed-llm-validations-with-instructor",
   "title": "Retry automatically when the LLM output fails validation",
   "best": false,
   "url": "https://dedupedai.com/use-cases/567-labs-instructor/auto-retry-failed-llm-validations-with-instructor/",
   "json": "https://dedupedai.com/use-cases/u/567-labs-instructor/auto-retry-failed-llm-validations-with-instructor.json"
  }
 ],
 "disclaimer": "Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk."
}
