dottxt-ai/outlines
Python library for constrained structured generation from large language models, ensuring reliable JSON, regex, and CFG-based outputs.

Velocity · 7d
+12
★ / day
Trend
→steady
star history
Outlines provides developers with tools to force LLMs to produce structured outputs by constraining generation with JSON schemas, regular expressions, and context-free grammars. It integrates with popular inference backends and is used by vLLM, HuggingFace, and NVIDIA. The library supports dynamic prompting and is designed for production use cases requiring reliable structured data extraction from generative models.