Zum Inhalt springen

Strukturierte Ausgabe

Das Modell JSON nach einem Schema ausgeben lassen

Daten & DokumenteAnfänger#39
EingabeTextTabelle

Der vollständige Artikel liegt auf Englisch vor; Titel und Zusammenfassung sind lokalisiert.

Was diese Fähigkeit bedeutet

Takes natural language plus a target structure — field names, types, required flags — and outputs text that strictly conforms, such as JSON, XML or a table. Unlike information extraction the structure is supplied by the caller rather than inferred from the text; unlike tool use it produces the data itself, not a request to invoke some interface.

Wie sie technisch umgesetzt wird

The basic approach puts the schema and examples in the prompt and asks the model to fill them; more reliable is constrained decoding, which at each step allows only tokens that keep the structure valid, ruling out syntax errors during generation. Fine-tuning on many text-to-structure pairs familiarises the model with common field naming and type conventions. Large schemas can be split across several calls or filled in layers.

Repräsentative Produkte

5

OpenAI

GPT-4o

Ein von Grund auf multimodales Allzweckmodell: Text, Bild und Audio über einen Zugang

4Fähigk.
Modell Geschlossen
TextBildAudioTextAudio
2024

Anthropic

Claude

Ein allgemeines Dialogmodell, bekannt für langen Kontext und Sicherheitsausrichtung

4Fähigk.
Modell Geschlossen
TextBildText
2023

Google DeepMind

Gemini

Ein von Grund auf multimodales Allzweckmodell für sehr langen Kontext

4Fähigk.
Modell Geschlossen
TextBildAudioVideoText
2023

Alibaba (Qwen)

Qwen

Eine Open-Weights-Familie über viele Größen hinweg, mit multimodalen Versionen

4Fähigk.
Modell Offene Gewichte
TextBildText
2023

Tencent (Hunyuan)

Hunyuan

Tencent Generalmodell-Familie mit Open-Weights-Versionen

4Fähigk.
Modell Offene Gewichte
TextBildText
2023

Beteiligte Organisationen

Typische Verwendungen

  • Converting natural language into API payloads
  • Auto-filling forms and order fields
  • Data cleaning and normalisation pipelines
  • Passing structured messages between agents

Wie sie bewertet wird

Schema validity rate
Share of outputs that parse and satisfy the schema
Field exact match
Share of field values matching the reference
Value-level F1
Scores elements in lists and nested structures

Grenzen und schwierige Punkte

  • With many fields or long enums it drops fields, picks the wrong value or invents new ones
  • Deep nesting and complex types such as unions or nullable arrays produce type errors
  • Tight format constraints squeeze reasoning, and the same model reasons less well under them

Konzepte dahinter

NLP und große Sprachmodelle

Prompt-Engineering und AlignmentExperte

Ein Modell hilfreich, ehrlich und harmlos zu machen ist schwieriger, als es einfach größer zu machen

4Bezug
Abbildungen 1 · Daten 1

NLP und große Sprachmodelle

Transformer-ArchitekturFortgeschritten

Statt Wort-für-Wort-Stafette ein Raum, in dem alle zugleich sprechen — und weite Abhängigkeiten sind nur einen Schritt entfernt

4Bezug
Abbildungen 2 · Daten 2

KI-Engineering, Sicherheit und Ethik

Agenten und WerkzeugnutzungFortgeschritten

Ein Modell soll nicht nur antworten, sondern suchen, APIs aufrufen, Code ausführen – und anhand des Ergebnisses den nächsten Schritt wählen

4Bezug
Abbildungen 1 · Daten 1