dottxt-ai/outlines
Structured Outputs observed · 2026-08-28
Health v2 · maintenance only
96/100
- Activity 99
- Release rhythm 96
- Longevity 90
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 7
- age_days: 1265
- days_rel: 27
- days_push: 7
- n_releases_24m: 44
Adoption not part of the score
15695 stars · 866 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Outlines is a Python library for structured generation that guarantees LLM outputs conform to a desired structure (JSON schemas, regex, grammars, types) during generation rather than via post-hoc parsing. It works provider-independently across models like OpenAI, Ollama, and vLLM with a simple model(prompt, output_type) interface.
Use cases
- make an LLM always return valid JSON matching a schema
- extract structured data like event details from unstructured text
- categorize documents or products into predefined types with guaranteed labels
- generate function-calling arguments that always parse
- force LLM output to match a regex or context-free grammar
- switch LLM providers without rewriting structured-output code
When to choose
- you need guaranteed-valid structured outputs from any LLM
- you want provider-independent code that works across OpenAI, Ollama, vLLM, etc.
- post-generation parsing of LLM output is fragile or failing
- you need constrained generation via JSON schema, regex, or CFG
When to avoid
- you only need free-form text generation with no structure constraints
- you need a hosted API service rather than a Python library
- your stack is not Python
Facets
library · maturity active
llm-inference prompt-engineering serialization parser large-language-models artificial-intelligence developer-tools python structured-generation structured-outputs -schema regex-generation cfg llm-output-constraints natural-language-processing
3 sources
- readme: https://github.com/dottxt-ai/outlines · fetched 2026-08-28 · 22aa69457e47
- homepage: https://dottxt-ai.github.io/outlines/ · fetched 2026-08-29 · 36c6c3c2e4f9
- registry_pypi: https://pypi.org/pypi/outlines/json · fetched 2026-08-29 · 76a760b91e8f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| dottxt-ai/outlines | main | 96 |
For agents
markdown · JSON · MCP: product_card(name="dottxt-ai/outlines")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem