Skip to content

Commit 45aa04a

Browse files
authored
Re chunking options update create kb and data source (#1126)
* update examples/curl for create KB and create data source * update sample request payload for create KB and create data source * chunking algo/options with feature note * minor change * minor change * minor change,
1 parent 8e30ff8 commit 45aa04a

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

specification/resources/gen-ai/definitions.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,11 @@ apiChatbot:
11831183
type: string
11841184
type: object
11851185
apiChunkingAlgorithm:
1186-
default: CHUNKING_ALGORITHM_UNKNOWN
1186+
default: CHUNKING_ALGORITHM_SECTION_BASED
1187+
description: |-
1188+
The chunking algorithm to use for processing data sources.
1189+
1190+
**Note: This feature requires enabling the knowledgebase enhancements feature preview flag.**
11871191
enum:
11881192
- CHUNKING_ALGORITHM_UNKNOWN
11891193
- CHUNKING_ALGORITHM_SECTION_BASED
@@ -1193,13 +1197,18 @@ apiChunkingAlgorithm:
11931197
example: CHUNKING_ALGORITHM_SECTION_BASED
11941198
type: string
11951199
apiChunkingOptions:
1200+
description: |-
1201+
Configuration options for the chunking algorithm.
1202+
1203+
**Note: This feature requires enabling the knowledgebase enhancements feature preview flag.**
11961204
properties:
1197-
child_chunk_size:
1205+
child_chunk_size:
1206+
description: Hierarchical options
11981207
example: 350
11991208
format: int64
12001209
type: integer
12011210
max_chunk_size:
1202-
description: Common options
1211+
description: Section_Based and Fixed_Length options
12031212
example: 750
12041213
format: int64
12051214
type: integer

0 commit comments

Comments
 (0)