You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/models/shared/partitionparameters.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@
8
8
| `files` | [shared.Files](../../models/shared/files.md) | :heavy_check_mark: | The file to extract | |
9
9
| `chunking_strategy` | [OptionalNullable[shared.ChunkingStrategy]](../../models/shared/chunkingstrategy.md) | :heavy_minus_sign: | Use one of the supported strategies to chunk the returned elements after partitioning. When 'chunking_strategy' is not specified, no chunking is performed and any other chunking parameters provided are ignored. Supported strategies: 'basic', 'by_page', 'by_similarity', or 'by_title' | by_title |
10
10
| `combine_under_n_chars` | *OptionalNullable[int]* | :heavy_minus_sign: | If chunking strategy is set, combine elements until a section reaches a length of n chars. Default: 500 | |
11
+
| `content_type` | *OptionalNullable[str]* | :heavy_minus_sign: | A hint about the content type to use (such as text/markdown), when there are problems processing a specific file. This value is a MIME type in the format type/subtype. | |
11
12
| `coordinates` | *Optional[bool]* | :heavy_minus_sign: | If `True`, return coordinates for each element extracted via OCR. Default: `False` | |
12
13
| `encoding` | *OptionalNullable[str]* | :heavy_minus_sign: | The encoding method used to decode the text input. Default: utf-8 | |
13
14
| `extract_image_block_types` | List[*str*] | :heavy_minus_sign: | The types of elements to extract, for use in extracting image blocks as base64 encoded data stored in metadata fields. | |
Copy file name to clipboardExpand all lines: src/unstructured_client/models/shared/partition_parameters.py
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,8 @@ class PartitionParametersTypedDict(TypedDict):
50
50
r"""Use one of the supported strategies to chunk the returned elements after partitioning. When 'chunking_strategy' is not specified, no chunking is performed and any other chunking parameters provided are ignored. Supported strategies: 'basic', 'by_page', 'by_similarity', or 'by_title'"""
51
51
combine_under_n_chars: NotRequired[Nullable[int]]
52
52
r"""If chunking strategy is set, combine elements until a section reaches a length of n chars. Default: 500"""
53
+
content_type: NotRequired[Nullable[str]]
54
+
r"""A hint about the content type to use (such as text/markdown), when there are problems processing a specific file. This value is a MIME type in the format type/subtype."""
53
55
coordinates: NotRequired[bool]
54
56
r"""If `True`, return coordinates for each element extracted via OCR. Default: `False`"""
55
57
encoding: NotRequired[Nullable[str]]
@@ -109,6 +111,8 @@ class PartitionParameters(BaseModel):
109
111
r"""Use one of the supported strategies to chunk the returned elements after partitioning. When 'chunking_strategy' is not specified, no chunking is performed and any other chunking parameters provided are ignored. Supported strategies: 'basic', 'by_page', 'by_similarity', or 'by_title'"""
r"""A hint about the content type to use (such as text/markdown), when there are problems processing a specific file. This value is a MIME type in the format type/subtype."""
0 commit comments