Files
enginex-ascend-910-vllm/docs/source/user_guide/feature_guide/structured_output.md
Sun Ruoxi 7f8a1b1f7a init v0.23.0
Signed-off-by: Sun Ruoxi <sunruoxi@4paradigm.com>
2026-08-27 15:11:51 +08:00

955 B

Structured Output Guide

Overview

What is structured output?

LLMs can be unpredictable when you need output in specific formats. Think of asking a model to generate JSON without guidance: it might produce valid text that breaks the JSON specification. Structured Output (also known as Guided Decoding) enables LLMs to generate outputs that follow a desired structure while preserving the non-deterministic nature of the system.

In simple terms, structured decoding gives LLMs a "template" to follow. Users provide a schema that "influences" the model output, ensuring compliance with the desired structure.

structured decoding

Usage in vllm-ascend

Currently, the usage of structured output feature in vllm-ascend is totally the same as that in vLLM.

Find more examples and explanations about these usages in vLLM official document.