GH Repository · dottxt-ai
outlines
Structured Outputs
- stars
- 15,807
- 30-day movement
- +279/day
- Related entries
- 60
- Connections
- 2
python/uvgenerative-aipythonpython/condallmsprompt-engineeringjsonsymbolic-aiPythonstructured-generationregexothercfgnix
outlines is a Python library for structured generation with large language models, using context-free grammars, JSON and regex to constrain model outputs. It is developed by dottxt-ai and combines symbolic AI techniques with LLM prompting.
It lets you make LLMs reliably output valid structured formats like JSON or regex-matched text.
Use it to
- Generate valid JSON from LLM output
- Constrain generation with regex patterns
- Apply context-free grammars to model outputs
- Improve prompt engineering with structured generation
For Python developers building LLM applications needing structured output
- Role
- other
- Language
- Python
- Licence
- Apache-2.0
- Forks
- 876
- Open issues
- 100
- Last push
- 2026-09-09
- Latest release
- 0.0.1 · 2023-05-25
topicsllmsstructured-generationregexprompt-engineeringgenerative-ai