Latest / AI & agents

Outlines

github.com · Package · Active

Python library that constrains LLM text generation to match a regex

Visit github.com ↗Share

Stars
16k
Forks
922
Open issues
104
Last commit
Releases
90
Found
3 years ago

GitHub figures as of . They are context, not a ranking.

Outlines is a Python library for text generation with large language models, where output is guided so it matches a regular expression. It converts the pattern into a finite automaton and masks tokens that would break the match, which suits developers who need predictable, structured output.

Repository description on GitHub: “Structured Outputs”

What it does

  • Constrains LLM output to match a regular expression
  • Converts patterns into a finite automaton that masks tokens which would break the match
  • Supports structured generation such as JSON and grammars

Good for

  • Force an LLM to return output that matches a regex or JSON schema
  • Build predictable structured output for downstream parsing

Suits: Python developers who need structured, predictable LLM output.

What you can try

Read the README on GitHub and install from source.

Install

pip install outlines

Taken from the project’s README. Read the project’s own instructions before running anything.

Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.

Found vs. released

Kip first saw Outlines on , when remilouf posted it to Show HN. The oldest published release on GitHub is 0.0.1, dated . Outlines had been shipping tagged releases for 81 days before it was found. 90 releases have been published in total; the latest is 1.3.3 ().

Day-7 and day-30 updates

Day 7 no new release

  • No tagged release was published in the first 7 days after it was found (GitHub release dates).
  • Show HN discussion at check time: 854 points, 303 comments. API record

Checked , later than day 7 because tracking began after.

Day 30 no new release

  • No tagged release was published in the first 30 days after it was found (GitHub release dates).
  • Show HN discussion at check time: 854 points, 303 comments. API record

Checked , later than day 30 because tracking began after.

Release timeline every entry links to its source

Releases per month, last 24 months (30 in total, busiest month 5). Based on the most recent releases on record.
  1. Repository created on GitHub: normal-computing/outlines
  2. Release 0.0.1
  3. Found: remilouf posted it to Show HN. Show HN
  4. Release 1.2.12
  5. Release 1.2.13
  6. Release 1.3.0
  7. Release 1.3.1
  8. Release 1.3.2
  9. Release 1.3.3
  10. Day-7 check recorded by Kip (details)
  11. Day-30 check recorded by Kip (details)

Showing the first and the 6 latest of 90 releases. All releases on GitHub

Quick answers

When was Outlines released?
Its first tagged release on GitHub is dated 25 May 2023. Kip found it on Show HN on 14 Aug 2023.
Is Outlines open source?
Its source is public on GitHub at normal-computing/outlines under the Apache-2.0 licence.
What does Outlines run on?
Library.
Is Outlines free?
It is open source, so the code is free to read and run; check the licence for terms.
Is Outlines still maintained?
Yes. It had a commit or release in the last 90 days as of the latest check.

Provenance

SourceRecordLast checked
Show HNlisting
official API record
GitHub repositorynormal-computing/outlines
REST API record
GitHub Releasesrelease list
REST API record

Stable ID hn-37125118. Summary written by KipFound’s editor.

Share

Similar tools

More in AI & agents

Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.