Guidance
A guidance language for controlling large language models. observed · 2026-10-16
Health v2 · maintenance only
73/100
- Activity 75
- Release rhythm 56
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 40
- age_days: 1440
- days_rel: 216
- days_push: 152
- n_releases_24m: 8
Adoption not part of the score
21799 stars · 1218 forks observed · 2026-10-16
What it is AI-extracted, prompt v1, taxonomy v1, 2026-10-19, confidence 0.97
Guidance is a Python library that provides a domain‑specific language for steering large language models. It lets developers embed conditionals, loops, and output constraints directly in prompts to produce reliable, structured results.
Use cases
- generate JSON or XML responses with guaranteed schema
- constrain LLM output using regex or context‑free grammars
- interleave tool use and conditional logic in a single prompt
- create interactive Jupyter widgets for LLM generation
- reduce token usage and latency compared to manual prompting
When to choose
- you need deterministic, syntactically correct output from an LLM
- you work primarily in Python or Jupyter notebooks
- you want to embed control flow (if/else, loops) in prompts
- you aim to lower inference cost by avoiding fine‑tuning
When to avoid
- your project requires a non‑Python runtime without a bridge
- you need full model fine‑tuning rather than prompt‑level control
- the use case demands real‑time ultra‑low latency beyond what Python can provide
Facets
library · maturity active
llm-inference prompt-engineering parser large-language-models artificial-intelligence python guidance-language structured-output regex-constraints jupyter-widget low-latency
3 sources
- readme: https://github.com/guidance-ai/guidance · fetched 2026-10-16 · ac165bc863a4
- registry_pypi: https://pypi.org/pypi/guidance/json · fetched 2026-10-05 · 3d29f4aeff8b
- registry_crates: https://crates.io/api/v1/crates/llguidance · fetched 2026-10-05 · f4b23f2f977b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| guidance-ai/guidance | main | 73 |
| guidance-ai/llguidance | backend | 68 |
| guidance-ai/llgtrt | infra | 27 |
For agents
markdown · JSON · MCP: product_card(name="guidance-ai/guidance")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem