liveBook · Manning

Structured data

As explained in The Art of AI Product Development

Structured data is information organized according to a defined schema that supports systematic querying and processing.

A product team may need to compare usage behavior with what customers say in interviews. Product usage data is structured and can be queried with specialized approaches such as Text2SQL; interview and sales-call records are unstructured and may call for retrieval-augmented generation. Choosing a source therefore means choosing an appropriate way to access and analyze it, not just collecting everything in one place. section 9.1.1 section 9.1.1

Structured data is information arranged to meet a defined format or schema. That matters both when querying existing data and when asking a language model to produce data another part of a workflow can reuse. By default, model responses may be lengthy and unstructured; a prompt can instead specify a format such as JSON or CSV and name the required fields. section 6.4.1 section 9.1.1

From a response to a reusable table

Suppose someone wants an overview of companies developing space tourism. A general request may produce a list that still needs parsing. Asking for JSON with each company’s name, founding year, location, employee count, and main selling point produces a more concise result that can be reused for tables or visualizations. section 6.4.1

When structured data comes from a language model, a requested format is only one control. Match the safeguard to the workflow:

  • Specify the output format and fields in the prompt when downstream work needs a predictable shape. section 6.4.1
  • Consider constrained generation, function-calling models, or API structured-output options when the application needs tighter control. section 5.2.3
  • Validate generated data against a predefined schema; offline processing also allows additional output validation. section 5.2.3

For an agent drawing on several sources, start with the most important ones and add others as confidence grows. Structured usage data can reveal actual behavior, while sales calls capture different kinds of need; neither source answers every product question on its own. section 9.1.1

How The Art of AI Product Development covers it

How deep it goes
Explains format specification and outlines generation and validation options, without detailing schemas, query implementation, or tool setup.
Examples
Contrasts product usage data with interviews and specifies JSON fields for a space-tourism company overview.
What you can do after
Apply it via output-format prompts and schema validation, or query existing structured sources with approaches such as Text2SQL.
How it connects
Connects structured data with prompt engineering, JSON, CSV, schema validation, Text2SQL, and retrieval-augmented generation.

Also explained in

Compare how 24 books explain structured data →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of The Art of AI Product Development. The section links point to the parts of the book it draws on.