Skip to main content

Create a text splitter

POST 

/text-splitters

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.

Permissions. Write on the text-splitters object type and write on the text splitter provider that provider names.

Embedding models and text splitters shows example requests, and Providers and models lists the parameters of each provider.

Request​

Responses​

The text splitter was created. The body is the new text splitter.