Skip to main content
GGenerative AI
    • Start here
    • Learning paths5 paths
    • Modules11 modules
    • Projects5 projects
    • Quizzes
    • Flashcards
    • Homework
    • Interview prep8 question banks
    • Cheat sheets11 sheets
    • Glossary239 terms
    • Code snippets
    • Ask the mentor
    • My notes
    • My progress
SearchStart here
Menu
    • Start here
    • Learning paths5 paths
    • Modules11 modules
    • Projects5 projects
    • Quizzes
    • Flashcards
    • Homework
    • Interview prep8 question banks
    • Cheat sheets11 sheets
    • Glossary239 terms
    • Code snippets
    • Ask the mentor
    • My notes
    • My progress
  1. Reference
  2. Constrained decoding

Glossary

Constrained decoding

Restricting which tokens the model may produce at each step so the output must fit a schema. The shape conforms; the content can still be wrong.

Where it is explained

  • Reasoning models and structured outputsPrompting and structured output

See also

Terms explained in the same lessons.

  • Best-of-N
  • JSON mode
  • Reasoning model
  • Reasoning tokens
  • Refusal
  • Structured output
Previous termCompensating actionNext termContext assembly

All terms, A to Z

GGenerative AI

Learn generative AI from the first token to production systems.

  • Privacy
  • Search