PUT /v2/gen-ai/knowledge_bases/{knowledge_base_uuid}/data_sources/{data_source_uuid}

To update a data source (e.g. chunking options), send a PUT request to /v2/gen-ai/knowledge_bases/{knowledge_base_uuid}/data_sources/{data_source_uuid}.

Servers

Path parameters

Name Type Required Description
knowledge_base_uuid String Yes

Knowledge Base ID (Path Parameter)

data_source_uuid String Yes

Data Source ID (Path Parameter)

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
chunking_algorithm String No

The chunking algorithm to use for processing data sources.

Note: This feature requires enabling the knowledgebase enhancements feature preview flag.

Valid values:

  • "CHUNKING_ALGORITHM_SEMANTIC"
  • "CHUNKING_ALGORITHM_UNKNOWN"
  • "CHUNKING_ALGORITHM_HIERARCHICAL"
  • "CHUNKING_ALGORITHM_FIXED_LENGTH"
  • "CHUNKING_ALGORITHM_SECTION_BASED"

Default value: "CHUNKING_ALGORITHM_SECTION_BASED"

knowledge_base_uuid String No

Knowledge Base ID (Path Parameter)

chunking_options Object No

Configuration options for the chunking algorithm.

Note: This feature requires enabling the knowledgebase enhancements feature preview flag.

chunking_options.child_chunk_size Integer No

Hierarchical options

chunking_options.parent_chunk_size Integer No

Hierarchical options

chunking_options.max_chunk_size Integer No

Section_Based and Fixed_Length options

chunking_options.semantic_threshold Number No

Semantic options

data_source_uuid String No

Data Source ID (Path Parameter)

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.