Skip to content

Commit d3f9caf

Browse files
kderussol-trotta
andauthored
Update specification to clarify max chunking settings (#5225)
* Update specification to clarify max chunking settings * Generate output * format + output --------- Co-authored-by: Laura Trotta <[email protected]>
1 parent 4699bd3 commit d3f9caf

File tree

5 files changed

+17
-15
lines changed

5 files changed

+17
-15
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/inference/_types/Services.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,8 @@ export class InferenceEndpointInfoWatsonx extends InferenceEndpoint {
316316
export class InferenceChunkingSettings {
317317
/**
318318
* The maximum size of a chunk in words.
319-
* This value cannot be higher than `300` or lower than `20` (for `sentence` strategy) or `10` (for `word` strategy).
319+
* This value cannot be lower than `20` (for `sentence` strategy) or `10` (for `word` strategy).
320+
* This value should not exceed the window size for the associated model.
320321
* @server_default 250
321322
*/
322323
max_chunk_size?: integer

specification/inference/put_elser/PutElserRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export interface Request extends RequestBase {
7979
body: {
8080
/**
8181
* The chunking configuration object.
82+
* Note that for ELSER endpoints, the max_chunk_size may not exceed `300`.
8283
* @ext_doc_id inference-chunking
8384
*/
8485
chunking_settings?: InferenceChunkingSettings

0 commit comments

Comments
 (0)