Outlines constrains model generation so outputs are guaranteed to match a regex, JSON schema or grammar, at the token level, including with local models.

Excerpts from the project README on GitHub. Copyright and licensing remain with the respective authors.
Claim its page: indexed whatever its rank, translated into six languages, and enriched with what you write yourself.
Get an email alert on its next release or when it starts trending — never miss the moment.
Free · no card · unsubscribe anytimeStructured Outputs
outlines has 15.7k stars on GitHub. It has been forked 869 times. outlines is written mainly in Python. It has been in active development since 2023. outlines is available under the Apache-2.0 license. Its main topics are cfg, generative-ai, json, llms.
Read the full guideStructured Outputs
outlines is an open-source project. It is released under the Apache-2.0 license.
Yes. outlines is free and open source — you can use, modify and self-host it.
outlines is available under the Apache-2.0 license.
outlines is written mainly in Python.
Add this live badge to your README — your GitHub stars and directory rank, refreshed daily.
[](https://olud.ai/project/dottxt-ai-outlines.html)