Aller au contenu

Sortie structurée

Faire produire au modèle un JSON conforme à un schéma

entréeTexteTableau

Le texte intégral est présenté en anglais ; le titre et le résumé sont localisés.

Ce que désigne cette capacité

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.

Comment c'est fait

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.

Produits représentatifs

5

OpenAI

GPT-4o

Un modèle général nativement multimodal : texte, image et audio par une même entrée

4Capac.
Modèle Fermé
TexteImageAudioTexteAudio
2024

Anthropic

Claude

Un modèle de conversation général réputé pour son long contexte et son alignement sécurisé

4Capac.
Modèle Fermé
TexteImageTexte
2023

Google DeepMind

Gemini

Un modèle général nativement multimodal, conçu pour de très longs contextes

4Capac.
Modèle Fermé
TexteImageAudioVidéoTexte
2023

Alibaba (Qwen)

Qwen

Une famille à poids ouverts couvrant de nombreuses tailles, avec des versions multimodales

4Capac.
Modèle Poids ouverts
TexteImageTexte
2023

Tencent (Hunyuan)

Hunyuan

La famille de modèles généraux de Tencent, avec des versions à poids ouverts

4Capac.
Modèle Poids ouverts
TexteImageTexte
2023

Organisations concernées

Usages typiques

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

Comment on l'évalue

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

Limites et points difficiles

  • 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

Concepts sous-jacents

TAL et grands modèles de langage

Architecture TransformerIntermédiaire

Remplacer le relais mot à mot par une salle où tous parlent en même temps, pour que les dépendances lointaines soient à un saut

4Liés
Figures 2 · Données 2

Ingénierie, sûreté et éthique de l’IA

Agents et utilisation d’outilsIntermédiaire

Qu’un modèle ne se contente pas de répondre : chercher, appeler des API, exécuter du code — et décider de l’étape suivante d’après le résultat

4Liés
Figures 1 · Données 1