Ir para o conteúdo

Saída estruturada

Fazer o modelo emitir JSON conforme a um esquema

entradaTextoTabela

O texto completo é apresentado em inglês; o título e o resumo estão traduzidos.

O que esta capacidade significa

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.

Como é feita tecnicamente

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.

Produtos representativos

5

OpenAI

GPT-4o

Um modelo geral nativamente multimodal: texto, imagem e áudio por uma única porta

4Capac.
Modelo Fechado
TextoImagemÁudioTextoÁudio
2024

Anthropic

Claude

Um modelo de conversa geral conhecido por contexto longo e alinhamento de segurança

4Capac.
Modelo Fechado
TextoImagemTexto
2023

Google DeepMind

Gemini

Um modelo geral nativamente multimodal, feito para contextos muito longos

4Capac.
Modelo Fechado
TextoImagemÁudioVídeoTexto
2023

Alibaba (Qwen)

Qwen

Uma família de pesos abertos com muitos tamanhos e versões multimodais

4Capac.
Modelo Pesos abertos
TextoImagemTexto
2023

Tencent (Hunyuan)

Hunyuan

A família de modelos gerais da Tencent, com versões de pesos abertos

4Capac.
Modelo Pesos abertos
TextoImagemTexto
2023

Organizações relacionadas

Usos típicos

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

Como avaliar se funciona bem

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 e dificuldades

  • 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

Conceitos por trás

PLN e grandes modelos de linguagem

Arquitetura TransformerIntermediário

Substituir o revezamento palavra a palavra por uma sala onde todos falam ao mesmo tempo, deixando dependências distantes a um salto

4Vínculos
Figuras 2 · Dados 2

Engenharia, segurança e ética de IA

Agentes e uso de ferramentasIntermediário

Que um modelo não só responda: pesquise, chame APIs, execute código — e decida o próximo passo a partir do resultado

4Vínculos
Figuras 1 · Dados 1