Customize DocumentSplitter to shorten your text documents.
YAML Init Parameters
These are the parameters you can pass to this component in the pipeline YAML configuration:
Parameter | Type | Possible values | Description |
---|---|---|---|
| Literal |
| The unit by which the document should be split. Choose from |
| Integer | Default: | The maximum number of units in each split. For example, if you set |
| Integer | Default: | The number of units that each split should overlap. For example, if you set |
| Integer | Default: | The minimum number of units that the split should have. If the split has fewer units than the threshold, it's attached to the previous split. |
REST API Runtime Parameters
There are no runtime parameters you can pass to this component when making a request to the Search REST API endpoint.