Outlines
github.com · Package · Active
Python library that constrains LLM text generation to match a regex
- AI & agents
- Package
- Python
- Day-7 check
- Day-30 check
- llm
- python
- structured output
- regex
- generative ai
- prompt engineering
- symbolic ai
- cfg
- json
- structured generation
- 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 outlinesTaken 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
- Repository created on GitHub: normal-computing/outlines
- Release 0.0.1
- Found: remilouf posted it to Show HN. Show HN
- Release 1.2.12
- Release 1.2.13
- Release 1.3.0
- Release 1.3.1
- Release 1.3.2
- Release 1.3.3
- Day-7 check recorded by Kip (details)
- 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
| Source | Record | Last checked |
|---|---|---|
| Show HN | listing official API record | |
| GitHub repository | normal-computing/outlines REST API record | |
| GitHub Releases | release list REST API record |
Stable ID hn-37125118. Summary written by KipFound’s editor.
Share
Similar tools
Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.