> ## 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.

# Fast strategy

> The Fast strategy uses rule-based text extraction optimized for text-only documents, delivering the fastest processing at the lowest cost.

*Type*: `partition`

*Subtype*: `unstructured_api`

## Settings

<ParamField body="strategy" type="string" required>
  Partitioning strategy to use. Must be set to `fast`.
</ParamField>

<ParamField body="include_page_breaks" type="boolean">
  If `true`, includes page breaks in the output where supported by the file type. Default: `false`.
</ParamField>

<ParamField body="pdf_infer_table_structure" type="boolean">
  Applies only to the `hi_res` strategy and has no effect here. Default: `false`.
</ParamField>

<ParamField body="exclude_elements" type="array">
  List of Unstructured element types to exclude from the output. Default: none. Allowed values:

  * `Address`
  * `EmailAddress`
  * `FigureCaption`
  * `Footer`
  * `Formula`
  * `Header`
  * `Image`
  * `ListItem`
  * `NarrativeText`
  * `PageBreak`
  * `Table`
  * `Title`
  * `UncategorizedText`
</ParamField>

<ParamField body="xml_keep_tags" type="boolean">
  If `true`, retains XML tags in the output. If `false`, extracts only the text content from XML tags. Default: `false`.
</ParamField>

<ParamField body="encoding" type="string">
  Encoding method used to decode the text input. Default: `utf-8`.
</ParamField>

<ParamField body="ocr_languages" type="array">
  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](https://github.com/Unstructured-IO/unstructured/blob/main/unstructured/partition/common/lang.py).
</ParamField>

<ParamField body="extract_image_block_types" type="array">
  Unstructured element types for which image blocks are extracted as Base64-encoded data and stored in `metadata` fields. Default: none. Allowed values:

  * `Abstract`
  * `BulletedText`
  * `Caption`
  * `CodeSnippet`
  * `CompositeElement`
  * `Figure`
  * `FigureCaption`
  * `Form`
  * `FormKeysValues`
  * `Formula`
  * `Header`
  * `Image`
  * `List`
  * `List-item`
  * `ListItem`
  * `NarrativeText`
  * `Paragraph`
  * `Picture`
  * `Table`
  * `Text`
  * `Threading`
  * `Title`
  * `UncategorizedText`
</ParamField>

<ParamField body="infer_table_structure" type="boolean">
  If `true`, any table elements extracted from a PDF include an additional `text_as_html` metadata field containing an HTML `<table>` representation. Default: `false`.
</ParamField>

<ParamField body="coordinates" type="boolean">
  If `true`, each element extracted from a PDF includes position information relative to its page. Default: `false`.
</ParamField>

<RequestExample>
  ```python Python SDK theme={null}
  fast_partitioner_workflow_node = WorkflowNode(
      name="Partitioner",
      subtype="unstructured_api",
      type="partition",
      settings={
          "strategy": "fast",
          "include_page_breaks": <True|False>,
          "pdf_infer_table_structure": <True|False>,
          "exclude_elements": [
              "<element-name>",
              "<element-name>"
          ],
          "xml_keep_tags": <True|False>,
          "encoding": "<encoding>",
          "ocr_languages": [
              "<language>",
              "<language>"
          ],
          "extract_image_block_types": [
              "image",
              "table"
          ],
          "infer_table_structure": <True|False>,
          "coordinates": <True|False>
      }
  )
  ```

  ```json cURL theme={null}
  {
      "name": "Partitioner",
      "type": "partition",
      "subtype": "unstructured_api",
      "settings": {
          "strategy": "fast",
          "include_page_breaks": <true|false>,
          "pdf_infer_table_structure": <true|false>,
          "exclude_elements": [
              "<element-name>",
              "<element-name>"
          ],
          "xml_keep_tags": <true|false>,
          "encoding": "<encoding>",
          "ocr_languages": [
              "<language-code>",
              "<language-code>"
          ],
          "extract_image_block_types": [
              "image",
              "table"
          ],
          "infer_table_structure": <true|false>,
          "coordinates": <true|false>
      }
  }
  ```
</RequestExample>
