Back to Resources
📐

Outlines

NLP

Structured text generation with regex and JSON schema constraints.

12kstars850forksPython

About

Outlines enables reliable structured generation from LLMs by constraining outputs to valid JSON, regex patterns, or custom grammars at the token level — no post-processing needed.

Key Features

  • JSON schema
  • Regex constraints
  • Structured output
  • Grammar sampling

Tags

Structured outputJSONConstrained generation

Related Resources