Lattice
Skip to content

Guidance

guidance.mit.edulibraryself-hosted

Guidance is a self-hosted library in the Prompt Engineering layer of the AI stack. Constrained generation by interleaving control flow and model output.

By Lattice editorial · Facts verified · method

licence
MIT
language
Python
cost
free

Use Guidance when

Constrained decoding with control flow interleaved into generation.

Skip Guidance when

You need better ergonomics for plain extraction.

Makes the prompt an artifact you can diff and test. — that is what this layer of the stack is answerable for. See the full Prompt Engineering section for the rest of the options.

Visit guidance.mit.eduCompare with another tool
Badge this entry
Lattice badge: Guidance verified 2026-09
[![Guidance on Lattice: verified 2026-09](https://lattice.kunjshah.in/prompt-engineering/guidance/badge.svg)](https://lattice.kunjshah.in/prompt-engineering/guidance)

Quick answers

Is Guidance open source?
Yes. Guidance is open source under the MIT licence. It is free to use.
What are the alternatives to Guidance?
The closest alternatives to Guidance are Outlines and Instructor.

Compared in

Reading on prompts

Alternatives to Guidance

Listed as an alternative to

  • Instructor
  • Outlines

Also in prompts

  • DSPy
  • Instructor
  • Humanloop
  • PromptLayer
  • Agenta
  • Promptwatch
  • TextGrad
  • Outlines