All repositories

Prompting & context567-labs

instructor

The most popular way to get validated Pydantic objects out of an LLM: define a data model and the library retries the request when validation fails.

Who it is for

For Python developers who need reliable structured answers from any provider.

How to start

  1. Install: pip install instructor (or uv add instructor).
  2. Define a Pydantic model for what you want.
  3. Wrap your provider client with instructor and get a ready object from text.

Steps are taken from the README. Check the current version in the repository before running them.

Stars over the last 30 days

+157Sep 6 — Oct 4
13,81813,975

Author's description

structured outputs for llms

anthropics

skills

Growing fastest

Anthropic's official collection of Agent Skills: folders with instructions and scripts that Claude loads for a task. A good reference for writing your own.

180Kstars+5.4K in 30 dPython

Formerly Awesome ChatGPT Prompts: a huge community library of prompts plus an interactive book on prompting. You can deploy your own private copy.

172Kstars+2.9K in 30 dHTML

A collection of system prompts and tool descriptions from popular AI products: Cursor, Devin, Windsurf, Lovable, Manus and others. Useful for studying how pros build them.

144Kstars+933 in 30 d

A detailed guide to prompt engineering: techniques from few-shot to chains of thought, papers, lectures and notebooks. Recently extended with context engineering and agents.

79Kstars+909 in 30 dMDX

A collection of examples and guides for the OpenAI API: from basic requests to function calling and RAG. Most code is Python.

76Kstars+676 in 30 dJupyter Notebook

Recipes from Anthropic as notebooks: tools, RAG, multimodality, subagents and other techniques for working with Claude. The code is ready to copy into your projects.

53Kstars+829 in 30 dJupyter Notebook
567-labs/instructor — what it is and how to start