Output format and structured answers

A section of the "Prompting and context" topic. The questions check an understanding of practice, not memory of specific library APIs. After each answer comes a review: why the correct option is right, what is wrong with each incorrect one and which chapter to read.

Quiz difficulty Formats: several correct options, one correct option, pairs

Quiz 1.7Output format and structured answersStart Practice or a ranked attempt — you choose after clicking.
  1. Ways to get structured output
  2. A token limit and JSON answers
  3. The output format in the prompt
  4. YAML instead of JSON
  5. The answer format keeps breaking
  6. Model confidence from logprobs