instructor

Extract and validate structured data from LLM outputs with Pydantic.

Updated May 11, 2026
One-click install
npx skills add https://github.com/richardnguyen0715/keep-it-real --skill instructor-richardnguyen0715
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: instructor
Source: https://github.com/richardnguyen0715/keep-it-real/tree/main/refer-projects/hermes-agent/optional-skills/mlops/instructor
Command: npx skills add https://github.com/richardnguyen0715/keep-it-real --skill instructor-richardnguyen0715

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires instructor, pydantic, openai, anthropic, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill helps in automating the extraction of structured data from LLM responses and parsing complex JSON, eliminating manual errors and validation issues.

Core Features & Use Cases

  • Data Extraction: Extract and structure data from LLM outputs reliably with Pydantic validation.
  • JSON Parsing: Parse complex JSON with type safety and validation.
  • Streaming: Stream partial results for real-time processing.
  • Multi-provider: Support multiple LLM providers like OpenAI, Anthropic, and more with a consistent API.
  • Use Case: Automatically extract and structure data from large amounts of LLM responses to create detailed user profiles, summary reports, or structured datasets.

Quick Start

Run the instructor script to set up the structured data extraction for your LLM outputs.

Frequently Asked Questions about instructor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract structured data from LLM outputs reliably?

Parse complex JSON from LLM responses with automated Pydantic validation by defining typed models, ensuring type safety and eliminating manual parsing errors during large-scale data extraction workflows.

Does structured data extraction work with both OpenAI and Anthropic models?

Yes, structured data extraction supports multiple LLM providers like OpenAI and Anthropic through a consistent API, allowing you to switch models while maintaining the same Pydantic validation and parsing logic.

Can I stream partial JSON parsing results for real-time processing?

Yes, you can stream partial JSON parsing results for real-time data processing, allowing incremental data ingestion and immediate validation as the language model generates output for large-scale transformation workflows.

What is the best way to automate structured data extraction from large-scale LLM responses?

The best way to automate structured data extraction from large-scale LLM responses is to combine Pydantic validation with multi-provider APIs, creating structured datasets or detailed summary reports without manual data cleaning.

Do I need Pydantic to parse complex JSON from language model outputs?

Yes, Pydantic is required to parse complex JSON from language model outputs, providing the automated type safety and validation framework needed to structure raw text into reliable data models.