Transform uses the LLM capabilities of the Unstructured structured data extractor. To use regex expressions to extract structured data, use the Pipelines API. For more information, see Choose an extraction method: LLM or Regex.
Selecting and structuring the data
Transform enables you be as specific as you need to be about what data gets extracted from your files, and how that data is structured (that is, its schema.) When extracting data from files, you can use Transform to:- Have your agent suggest a schema for your review and approval, based on the information in the files themselves.
- Have your agent draft a schema based on what information you tell it you want extracted.
- Explicitly provide a schema to use when extracting the data.
Prompt examples
For example, let’s use the Caring for houseplants infographic example from Additional examples:
Additional extraction prompt patterns
If you want to process a batch of several similar documents, ask for one consistent structure across all of them:Considerations
Things to consider when writing prompts for structured data extraction:- Image, PDF, and PPT input files benefit from saying “extract” in the prompt, rather than just “read” or “summarize”. This phrasing nudges the agent toward using extraction functionality rather than a standard parsing of the file(s).
-
If your first extraction attempt comes back sparse, use wording similar to the prompt below to get your agent to redo the job with the High Res partitioning strategy plus relevant enrichments. This should lead to better results.
Next steps
- Control Transform file parsing output: Control how the Unstructured Transform MCP server instructs Transform to partition, enrich, chunk, and embed the data based on your files.
- Control Transform generated sample code: Control how the Unstructured Transform MCP server generates sample curl or Python code that demonstrates how to use Transform to partition, enrich, chunk, and embed the data based on your files.
Questions? Need help?
- For technical support, request support.

