What problem does it solve?
This Skill provides a structured text generation system that ensures the validity of outputs by enforcing JSON/regex/Pydantic schema constraints. It is ideal for automating data extraction, classification, and code generation tasks.
Core Features & Use Cases
- JSON/Pydantic/Regex Validation: Ensures outputs match specific schema requirements.
- Supports Local and API-based Models: Works with various text generation models, including Transformers, llama.cpp, vLLM, and OpenAI.
- Structured Generators: Offers choice, JSON, regex, integer, float, and custom generators for various output types.
- Pydantic Integration: Automatically translates Pydantic models to JSON schemas and generates structured outputs.
- Use Case: Generate structured JSON from user input or extract specific data from unstructured text.
Quick Start
Use the outlines skill with the following command: outlines generate json Person 'Generate person: John Doe, 30 years old, [email protected]'.