MerchantryTidbits

evals-testing / library

instructor

Capability: instructor

Use it when

  • typed structured outputs from LLMs via pydantic
  • patch OpenAI calls to return validated objects

What it solves

Not the fit when

  • zero-cost local only without a model

Install

pip install instructor

Invoke

import instructor
client = instructor.from_openai(...)
# pydantic-validated structured extraction

Alternatives

outlines, litellm