partition
Subtype: unstructured_api
For more information about how the various partitioning strategies balance output quality, speed, and cost, see Partitioning.
Usage guidance
Use this strategy for documents with tables, complex layouts, or scanned pages, and for any workflow that includes enrichment nodes (such as Image Description, Table to HTML, or Generative OCR), which require per-block image crops that only this strategy produces. Enablepdf_infer_table_structure to generate metadata.text_as_html for table elements, which is required by the Chunk by Table Merging chunker.
Set extract_image_block_types to include only the element types your downstream enrichment nodes will process, which reduces output size.
Settings
Partitioning strategy to use. Must be set to
hi_res.If
true, includes page breaks in the output where supported by the file type. Default: false.If
true, any Table elements extracted from a PDF include an additional text_as_html metadata field containing the table data as an HTML table. Default: false.List of Unstructured element types to exclude from the output. Default: none. Allowed values:
AddressEmailAddressFigureCaptionFooterFormulaHeaderImageListItemNarrativeTextPageBreakTableTitleUncategorizedText
If
true, retains XML tags in the output. If false, extracts only the text content from XML tags. Default: false.Encoding method used to decode the text input. Default:
utf-8.Languages present in the input, for use in partitioning, OCR, or both. Multiple values indicate the text could be in any of the specified languages. Default:
['eng']. See the language codes list.Unstructured element types for which image blocks are extracted as Base64-encoded data and stored in
metadata fields. Default: none. Allowed values:AbstractBulletedTextCaptionCodeSnippetCompositeElementFigureFigureCaptionFormFormKeysValuesFormulaHeaderImageListList-itemListItemNarrativeTextParagraphPictureTableTextThreadingTitleUncategorizedText
If
true, any table elements extracted from a PDF include an additional text_as_html metadata field containing an HTML <table> representation. Default: false.If
true, each element extracted from a PDF includes position information relative to its page. Default: false.
