AI Glossary
Constrained decoding
What does “Constrained decoding” mean?
Constrained decoding: Limiting which tokens may be generated to enforce rules such as a grammar or schema.

What is an example of “Constrained decoding”?
A decoder masks tokens that would make a response invalid JSON.