Skip to main content
Type: prompter Subtype: see Settings For more information, see Tables to HTML.
Unstructured can potentially generate table-to-HTML output only for workflows that are configured as follows:
  • With a Partitioner node set to use the Auto or High Res partitioning strategy, and a table-to-HTML output node is added.
  • With a Partitioner node set to use the VLM partitioning strategy. No table-to-HTML output node is needed (or allowed).
Even with these configurations, Unstructured actually generates table-to-HTML output only for files that contain tables and are also eligible for processing with the following partitioning strategies:
  • High Res, when the workflow’s Partitioner node is set to use Auto or High Res.
  • VLM or High Res, when the workflow’s Partitioner node is set to use VLM.
Unstructured never generates table-to-HTML output for workflows that are configured as follows:
  • With a Partitioner node set to use the Fast partitioning strategy.
  • With a Partitioner node set to use the Auto, High Res, or VLM partitioning strategy, for all files that Unstructured encounters that do not contain tables.

Usage guidance

The twopass_table2html subtype processes complex tables using two models in sequence, which improves accuracy for large or intricate table layouts; when using this subtype, omit provider_type and model. This enrichment pairs well with a Chunk by Table Merging node later in the workflow.

Settings

subtype
string
required
Enrichment algorithm and provider. Set at the WorkflowNode level, outside of settings. Allowed values:
  • twopass_table2html — agentic AI table-to-HTML output. Do not specify provider_type or model when using this subtype.
  • anthropic_table2html — VLM table-to-HTML output using Anthropic.
  • openai_table2html — VLM table-to-HTML output using OpenAI.
The preceding list applies only to Unstructured Let’s Go and Pay-As-You-Go accounts.For Unstructured Business accounts, to get your current list of available values, contact your Unstructured account administrator or Unstructured sales representative, or request support.
provider_type
string
Provider that matches the prefix of subtype. Not used with twopass_table2html. Allowed values: anthropic, openai.
model
string
Model to use for table-to-HTML conversion. Not used with twopass_table2html. For a full list of the models available in Unstructured, see Available models.
table_to_html_enrichment_workflow_node = WorkflowNode(
    name="Enrichment",
    subtype="<subtype>",
    type="prompter",
    settings={
        "provider_type": "<provider-type>",
        "model": "<model>"
    }
)
{
    "name": "Enrichment",
    "type": "prompter",
    "subtype": "<subtype>",
    "settings": {
        "provider_type": "<provider-type>",
        "model": "<model>"
    }
}