567-labs/instructor-js
structured extraction for llms
Leverages OpenAI's function calling and tool APIs (or JSON modes for other providers) combined with Zod schemas to enforce type-safe structured outputs with full TypeScript inference. Supports multiple extraction modes—TOOLS, FUNCTIONS, JSON, MD_JSON, and JSON_SCHEMA—enabling flexibility across different LLM providers while maintaining streaming capabilities for real-time partial extraction and automatic retry logic for robustness.
781 stars. No commits in the last 6 months.
Stars
781
Forks
72
Language
TypeScript
License
MIT
Category
Last pushed
Jan 27, 2025
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/567-labs/instructor-js"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
Ahoo-Wang/fetcher
Fetcher is not just another HTTP client—it's a complete ecosystem designed for modern web...
eric-tramel/slop-guard
Slop Scoring to Stop Slop
arena-ai/structured-logprobs
OpenAI's Structured Outputs with Logprobs
conorluddy/Persuader
Persuades your LLM to output schema conforming JSON. Prompts for N retries until schema is...
knowsuchagency/struct-gpt
get structured output from LLM's