Skip to main content

Guidance

Microsoft's constrained LLM generation — interleave generation, code, and control structures in one template

LLM FrameworksFree

Guidance is an open-source library from Microsoft that enables precise control over LLM generation. Unlike prompt engineering, Guidance lets you interleave Python code, conditionals, loops, and constrained generation within a single template — LLM output becomes a first-class part of your code. Supports constrained decoding for structured output, regex matching, and grammar-guided generation.

Key specs
18,000 GitHub stars source
as of 2026-03-27
Loading…

FAQ

Alternatives

Integrations

None listed.

Built on

None listed.