> ## Documentation Index
> Fetch the complete documentation index at: https://docs.unstructured.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Chunk by Table Merging strategy

> Use the Chunk by Table Merging strategy to detect and merge split tables spanning adjacent pages into a single coherent element with LLM assistance.

*Type*: `chunk`

*Subtype*: `chunk_by_table_merging`

## Usage guidance

Use this strategy when documents contain long tables that span multiple pages. It only acts on `Table` elements with a `metadata.text_as_html` field on adjacent pages. It pairs well with a [table2html enrichment](/api-reference/workflow/nodes/enhancement/prompter-table-to-html) earlier in the workflow.

## Settings

<ParamField body="table_merging_provider" type="string" required>
  The LLM provider to use for merge decisions. Allowed values: `anthropic`, `openai`, `bedrock`, `vertexai`. Default: none.
</ParamField>

<ParamField body="table_merging_model" type="string">
  The model name for the selected provider. Defaults to the provider's default. For a full list of the models available in Unstructured, see [Available models](/api-reference/workflow/models).
</ParamField>

<ParamField body="confidence_threshold" type="string">
  Minimum LLM confidence required to merge a table pair. Allowed values: `low`, `medium`, `high`. Default: `medium`.
</ParamField>

<ParamField body="table_merging_max_concurrency" type="integer">
  Maximum number of merge requests to run at once. Minimum: `1`. Default: `4`.
</ParamField>

<RequestExample>
  ```python Python SDK theme={null}
  chunk_by_table_merging_chunker_workflow_node = WorkflowNode(
      name="Chunker",
      subtype="chunk_by_table_merging",
      type="chunk",
      settings={
          "table_merging_provider": "<provider>",
          "table_merging_model": "<model>",
          "confidence_threshold": "<low|medium|high>",
          "table_merging_max_concurrency": <table-merging-max-concurrency>
      }
  )
  ```

  ```json cURL theme={null}
  {
      "name": "Chunker",
      "type": "chunk",
      "subtype": "chunk_by_table_merging",
      "settings": {
          "table_merging_provider": "<provider>",
          "table_merging_model": "<model>",
          "confidence_threshold": "<low|medium|high>",
          "table_merging_max_concurrency": <table-merging-max-concurrency>
      }
  }
  ```
</RequestExample>
