Output Format
Specifying the exact structure, length, or schema the model should use when responding.
PromptItIn team

What it means
Output format instructions tell the model how to structure its response — as JSON, markdown, a numbered list, a table, a specific word count, or any other schema. Explicit format constraints reduce post-processing effort and prevent the model from adopting a default style that doesn't fit the downstream use.
For structured data extraction, combining output format instructions with JSON schema definitions or XML tags gives highly reliable parsing. Format instructions placed at the end of a prompt, just before the model begins generating, tend to be followed more reliably than those buried in the middle.
Examples
- 'Return your answer as a JSON object with keys: title (string), summary (string, max 50 words), tags (array of strings).'
- 'Write a 4-row markdown table with columns: Country | Capital | Population | Currency.'
Related terms
Structured Output
Constraining model generation to produce valid, machine-parseable formats like JSON or XML.
Instruction Prompting
Directly telling the model what to do using clear imperative commands.
Prompt Template
A reusable prompt structure with placeholders that are filled in at runtime.
Put this into practice
PromptItIn applies techniques like output format for you: describe what you want and it builds the prompt.
You might also like