0.20.1 (latest) 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.12 0.12.3 0.11.14 0.10.0 0.9.1 0.8.1 0.7.0 0.6.0 0.5.0 0.4.1 0.3.1 0.2.1 0.1.1

    LayoutBasedChunkingConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Configuration for the layout based chunking.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `chunk_size` | `int` The token size limit for each chunk. Supported values: 100-500 (inclusive). Default value: 500. |
| `include_ancestor_headings` | `bool` Whether to include appending different levels of headings to chunks from the middle of the document to prevent context loss. Default value: False. |