Text splitters
Text splitters, which divide documents into fragments. Embedding models and text splitters describes the object type.
List text splitters
Returns a page of the text splitters that the key can read. Filters apply to the provider, the description and the timestamps. `order_by` accepts `id`, `created_at`, `updated_at` and `provider`. [API conventions](../01-api-conventions.md) describes pagination, filters and ordering.
Create a text splitter
Creates a text splitter: a configured instance of a text splitter provider, with parameters. A text splitter has no name, and a deployment can hold several text splitters of the same provider. Before storing the text splitter, Foundation4 splits a test string with the provider, so the request fails when the provider does not accept the parameters. After creation, only `description` can change.
Get a text splitter
Returns one text splitter: the provider and the parameters that Foundation4 passes to the provider.
Update a text splitter
Changes the `description` of a text splitter. `'description': null` removes the description, and an omitted field keeps the current description. The provider and the parameters cannot change, and Foundation4 ignores these fields in the request. Different parameters require a new text splitter.
Delete a text splitter
Deletes a text splitter. A text splitter that is the default text splitter of a pipeline cannot be deleted: the request returns HTTP 409 until each such pipeline uses another default text splitter or is deleted.