Artificial Intelligence

Structured Output

The ability of an LLM to generate responses in a specific format like JSON, XML, or a defined schema. Structured output makes AI responses parseable by other software systems.

Why It Matters

Structured output is essential for integrating LLMs into software applications. Without it, parsing free-text responses is unreliable and error-prone.

Example

An LLM extracting entities from text and returning: {"name": "John Smith", "company": "Acme Corp", "role": "CEO", "sentiment": "positive"} instead of free text.

Think of it like...

Like filling out a form versus writing a letter — the form ensures information is in specific, predictable slots that can be automatically processed.

Related Terms