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: api-reference/workflow/workflows.mdx
+14-16Lines changed: 14 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1030,10 +1030,9 @@ A **Partitioner** node has a `type` of `partition`.
1030
1030
```python
1031
1031
auto_partitioner_workflow_node = WorkflowNode(
1032
1032
name="Partitioner",
1033
-
subtype="unstructured_api",
1033
+
subtype="vlm",
1034
1034
type="partition",
1035
1035
settings={
1036
-
"strategy": "auto",
1037
1036
"provider": "<provider>",
1038
1037
"provider_api_key": None,
1039
1038
"model": "<model>",
@@ -1043,8 +1042,8 @@ A **Partitioner** node has a `type` of `partition`.
1043
1042
},
1044
1043
"format_html": <True|False>,
1045
1044
"unique_element_ids": <True|False>,
1046
-
"is_dynamic": <True|False>,
1047
-
"allow_fast": <True|False>
1045
+
"is_dynamic": True,
1046
+
"allow_fast": True
1048
1047
}
1049
1048
)
1050
1049
```
@@ -1053,10 +1052,9 @@ A **Partitioner** node has a `type` of `partition`.
1053
1052
```json
1054
1053
{
1055
1054
"name": "Partitioner",
1056
-
"type": "partition",
1057
-
"subtype": "unstructured_api",
1055
+
"type": "vlm",
1056
+
"subtype": "partition",
1058
1057
"settings": {
1059
-
"strategy": "auto",
1060
1058
"provider": "<provider>",
1061
1059
"provider_api_key": null,
1062
1060
"model": "<model>",
@@ -1066,8 +1064,8 @@ A **Partitioner** node has a `type` of `partition`.
1066
1064
},
1067
1065
"format_html": <true|false>,
1068
1066
"unique_element_ids": <true|false>,
1069
-
"is_dynamic": <true|false>,
1070
-
"allow_fast": <true|false>
1067
+
"is_dynamic": true,
1068
+
"allow_fast": true
1071
1069
}
1072
1070
}
1073
1071
```
@@ -1098,8 +1096,8 @@ Fields for `settings` include:
1098
1096
-`prompt.text`: _Optional_. If the Auto partitioning strategy needs to use the VLM partitioning strategy, then use the specified prompt when calling the specified VLM. The default value is none, which means to rely on using Unstructured's internal default prompt when calling the VLM.
1099
1097
-`format_html`: _Optional_. If the Auto partitioning strategy needs to use the VLM partitioning strategy, true (the default) to apply Beautiful Soup's `prettify` method to the HTML that is generated by the VLM partitioner, which for example adds indentation for better readability.
1100
1098
-`unique_element_ids`: _Optional_. True (the default) to assign UUIDs to element IDs, which guarantees their uniqueness. This is useful for example when using them as primary keys in a database. False to assign a SHA-256 of the element's text as its element ID.
1101
-
-`is_dynamic`: _Optional_. True (the default) to enable dynamic routing of pages to Fast, High Res, or VLM as needed for better overall performance and cost savings.
1102
-
-`allow_fast`: _Optional_. True (the default) to allow routing of pages to Fast as needed for better overall performance and cost savings.
1099
+
-`is_dynamic`: _Required_. True to enable dynamic routing of pages to Fast, High Res, or VLM as needed for better overall performance and cost savings.
1100
+
-`allow_fast`: _Required_. True to allow routing of pages to Fast as needed for better overall performance and cost savings.
1103
1101
1104
1102
#### VLM strategy
1105
1103
@@ -1120,8 +1118,8 @@ Fields for `settings` include:
1120
1118
},
1121
1119
"format_html": <True|False>,
1122
1120
"unique_element_ids": <True|False>,
1123
-
"is_dynamic": <True|False>,
1124
-
"allow_fast": <True|False>
1121
+
"is_dynamic": False,
1122
+
"allow_fast": True|False
1125
1123
}
1126
1124
)
1127
1125
```
@@ -1142,7 +1140,7 @@ Fields for `settings` include:
1142
1140
},
1143
1141
"format_html": <true|false>,
1144
1142
"unique_element_ids": <true|false>,
1145
-
"is_dynamic": <true|false>,
1143
+
"is_dynamic": false,
1146
1144
"allow_fast": <true|false>
1147
1145
}
1148
1146
}
@@ -1173,8 +1171,8 @@ Fields for `settings` include:
1173
1171
-`prompt.text`: _Optional_. Use the specified prompt when calling the specified VLM. The default value is none, which means to rely on using Unstructured's internal default prompt when calling the VLM.
1174
1172
-`format_html`: _Optional_. True (the default) to apply Beautiful Soup's `prettify` method to the HTML that is generated by the VLM partitioner, which for example adds indentation for better readability.
1175
1173
-`unique_element_ids`: _Optional_. True (the default) to assign UUIDs to element IDs, which guarantees their uniqueness. This is useful for example when using them as primary keys in a database. False to assign a SHA-256 of the element's text as its element ID.
1176
-
-`is_dynamic`: _Optional_. This setting has no effect for the VLM strategy. The default is false.
1177
-
-`allow_fast`: _Optional_. This setting has no effect for the VLM strategy. The default is true.
1174
+
-`is_dynamic`: _Required_. False to use the VLM strategy.
1175
+
-`allow_fast`: _Optional_. True (the default) to allow routing of pages to Fast as needed for better overall performance and cost savings.
0 commit comments