WhoBuilt

Outlines

An open-source library for generating structured text with language models.

Key facts

Built by
Rémi Louf, creator
Capabilities
supports semantic constraints for generation, including text-to-SQL
can constrain generation with context-free grammars
generates JSON objects from JSON Schema or Pydantic models
guides model generation to conform to specified structures

From talks

Results and examples shared in single talks

Timeline 7

Dated events, newest first. Open the sources under any item.

How we verify
Built3Capability4
20245 events
  1. as of Oct 2024Capability
    Supports semantic constraints for generation, including text-to-SQL
    “adding semantic constraints to generation” 13:47
    Unverified1 source· Talk
    +2 more capabilities on the full timeline
  2. as of Oct 2024Capability
    Can constrain generation with context-free grammars
    “we've generalized from regular expressions to context-free grammars” 13:22
    Unverified1 source· Talk
  3. reported 2024-10Built
    Rémi Louf built Outlines
    creator
    “the co-author and co-maintainer of the open-source library Outlines” 0:14
    Verified2 sources· Talk, Web· archived
Undated2 events
  1. undatedBuilt
    Dottxt built Outlines
    Verified1 source· Web
  2. undatedBuilt
    .txt built Outlines
    Verified1 source· Web· archived

Talks 1

15:31
No more bad outputs with structured generation

Remi Louf explains how structured generation guides language models to produce outputs that match a required format, such as JSON, instead of relying on prompts and post-processing. He introduces Outlines, an open-source Python library that constrains token generation and supports structures including regular expressions, JSON schemas, and context-free grammars. The talk presents reported benefits: valid outputs, little or no inference overhead, fewer generated tokens, and improved results on several benchmarks. Louf also describes newer work on semantic constraints for text-to-SQL and moving computation into the generation process.

Oct 14, 2024· 16 minDiscussed 0:14