AI and LLMs · Middle · Question 57 of 75

Why prefill or constrain the start of a model's answer in some cases?

Show the answer

Correct answer: It steers format, e.g. starting with { for JSON

Explanation

Prefilling or structured output modes reduce chatty preambles like "Sure, here is the JSON" that break parsers.

Further reading

Problem with a question

AI and LLMs · Middle · question 57

Test yourself

Take the AI and LLMs · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz