Ground Truth.
AI, checked against the source.

← All topics

JSON mode

Everything on Ground Truth tagged “JSON mode” — 1 item.

Constrained Decoding: Forcing an AI to Stay Inside the Lines Lesson

Constrained decoding forces a language model's output to follow a fixed structure, such as valid JSON or a specific schema, by blocking any next word that would break the rules as the text is generated.