pydo.genai.update_knowledge_base_data_source()
Generated on 9 Jun 2026
from pydo version
v0.36.0
Usage
client.genai.update_knowledge_base_data_source(
knowledge_base_uuid="123e4567-e89b-12d3-a456-426614174000",
data_source_uuid="123e4567-e89b-12d3-a456-426614174000",
body={
"chunking_algorithm": "CHUNKING_ALGORITHM_UNKNOWN",
"chunking_options": {...},
"data_source_uuid": "\"98765432-1234-1234-1234-123456789012\"",
...,
},
)Description
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}.
Parameters
knowledge_base_uuidstring requiredKnowledge Base ID (Path Parameter)
data_source_uuidstring requiredData Source ID (Path Parameter)
chunking_algorithmstring optionalchunking_optionsobject optionalShow child properties
child_chunk_sizeinteger optionalExample:
350max_chunk_sizeinteger optionalExample:
750Common options
parent_chunk_sizeinteger optionalExample:
1000Hierarchical options
semantic_thresholdnumber optionalExample:
0.5Semantic options
data_source_uuidstring optionalExample:
"98765432-1234-1234-1234-123456789012"Data Source ID (Path Parameter)
knowledge_base_uuidstring optionalExample:
"12345678-1234-1234-1234-123456789012"Knowledge Base ID (Path Parameter)
Request Sample
Response Example
More Information
See /v2/gen-ai/knowledge_bases/{knowledge_base_uuid}/data_sources/{data_source_uuid} in the API reference for additional detail on responses, headers, parameters, and more.