Skip to main content
7BBusyBoss

Generate structured text and JSON from any LLM. Guarantees the output matches your schema or grammar.

12,000 stars🍴 0 forksPythonstructuredjson-schemapydantic

About Outlines

Outlines is a Python open-source prompt engineering project by outlines-dev. Generate structured text and JSON from any LLM. Guarantees the output matches your schema or grammar. With 12,000 GitHub stars and 0forks, it's one of the Prompt Engineering tools worth knowing. You can download the source, browse it on GitHub, or read the full setup guide in the README below.

From the project README

<div align="center" style="margin-bottom: 1em;">

<img src="./docs/assets/images/logo-light-mode.svg#gh-light-mode-only" alt="Outlines Logo" width=300></img> <img src="./docs/assets/images/logo-dark-mode.svg#gh-dark-mode-only" alt="Outlines Logo" width=300></img>

🗒️ Structured outputs for LLMs 🗒️

Made with ❤👷️ by the team at .txt <br>Trusted by NVIDIA, Cohere, HuggingFace, vLLM, etc.

[![PyPI Version][pypi-version-badge]][pypi] [![Downloads][downloads-badge]][pypistats] [![Stars][stars-badge]][stars]

[![Discord][discord-badge]][discord] [![Blog][dottxt-blog-badge]][dottxt-blog] [![Twitter][twitter-badge]][twitter]

<br>The .txt API is currently in early access. Request access here →

</div>

🚀 Building the future of structured generation

We're working with select partners to develop new interfaces to structured generation.

Need XML, FHIR, custom schemas or grammars? Let's talk.

Audit your schema: share one schema, we show you what breaks under generation, the constraints that fix it, and compliance rates before and after. Sign up here.

Table of Contents

- [🙋‍♂️ Customer Support Triage](#customer-support-triage) - [📦 E-commerce Product Categorization](#e-commerce-product-categorization)

This is an excerpt from the project's own README, quoted here for reference. Read the full README on GitHub →

Outlines — FAQ

What is Outlines?

Generate structured text and JSON from any LLM. Guarantees the output matches your schema or grammar.

Is Outlines free to use?

Yes. Outlines is open-source and free. You can browse the source on GitHub or download it here at no cost — no signup required.

How do I install and run Outlines?

Download the latest source as a ZIP from GitHub (or clone the main branch), then follow the setup steps in the README below.

What language is Outlines written in?

Outlines is primarily written in Python.

How popular is Outlines?

Outlines has 12,000 stars and 0 forks on GitHub — a useful signal of how actively it's maintained and trusted by developers.

More Prompt Engineering skills

See all Prompt Engineering