Prompt workshop
What is Guidance?
Guidance is a generation programming model that mixes fixed text with constrained holes.
Structure is enforced while tokens are sampled, not mopped up afterwards.
Why it matters
Guidance is a programming model that interleaves fixed text with constrained generation holes. You write a template with typed gaps, and the model fills them while respecting the constraints.
This produces structured output without post-processing. The structure is enforced during generation, not cleaned up afterward.
Key takeaways
- 1Guidance mixes fixed text with constrained generation.
- 2Structure is enforced during token generation.
- 3No post-processing or output parsing needed.
Common mistakes
- ✕Using Guidance for simple tasks where a direct prompt would suffice.
- ✕Not testing the generated output against expected schemas.
Related terms
Concept neighborhood
Terms linked from Guidance in the glossary graph.