1 repository
Supports returning multiple data structures or mixed types for flexible, multi-intent interactions.
Distinct from Polymorphic Data Modeling: Focuses on model response handling for polymorphic types, distinct from database-level entity modeling.
Explore 1 awesome GitHub repository matching data & databases · Polymorphic Response Handling. Refine with filters or upvote what's useful.
Instructor is a framework designed for structured data extraction, validation, and language model integration. It functions as a library that transforms unstructured text into validated, type-safe objects by leveraging schema definitions and model-specific tool-calling capabilities. By acting as a validation middleware, the project ensures that language model outputs strictly conform to defined data structures. The library distinguishes itself through a robust validation-based retry loop that automatically re-submits failed responses with error feedback to iteratively correct schema complianc
Allows the model to return one of several different data structures or a list of mixed types to support flexible, multi-intent interactions.