Skip to main content
Type: structured_data_extractor Subtype: llm The following 4-minute video provides an overview of the structured data extractor.

Settings

object
required
You must specify exactly one of the following. Structured LLM extraction always runs against a schema: either you supply that schema directly (json_schema), or you supply plain-language instructions (extraction_guidance) and Unstructured derives the extraction schema from that text first.
string
The extraction schema, in OpenAI Structured Outputs format, for the structured data that you want to extract, expressed as a single string. Per OpenAI’s guidelines, the maximum supported JSON schema nesting depth is 10 levels.
string
Plain-language instructions describing what to extract, expressed as a single string. Unstructured derives an extraction schema from this text (OpenAI Structured Outputs format) before the LLM performs structured extraction.
string
The mode in which to output the extracted data. Allowed values:
  • elements_with_extracted_data: Output the extracted data as JSON into an extracted_data field inside of metadata within a parent DocumentData element, followed by other built-in Unstructured document elements.
  • extracted_data_only: Output only the extracted data as JSON, without any parent DocumentData element or any other built-in Unstructured document elements.
Default: elements_with_extracted_data.
string
required
LLM provider to use. Allowed values: anthropic, azure_openai, bedrock, openai.
string
required
LLM model to use. For a full list of the models available in Unstructured, see Available models.
Learn more.