Skip to content

Commit 1f5694c

Browse files
Adding batch size to custom service (#5523) (#5526)
* Adding batch size * Updating batch size info with link (cherry picked from commit 83b69f4)
1 parent 23dfe3d commit 1f5694c

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

specification/_doc_ids/table.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -819,6 +819,7 @@ security-saml-guide,https://www.elastic.co/guide/en/elasticsearch/reference/{bra
819819
security-settings-api-keys,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/security-settings.html#api-key-service-settings,,
820820
security-settings-hashing,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/security-settings.html#hashing-settings,,
821821
security-user-cache,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/controlling-user-cache.html,,
822+
sematic-text-chunking,https://www.elastic.co/docs/reference/elasticsearch/mapping-reference/semantic-text#auto-text-chunking,,
822823
service-accounts,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/service-accounts.html,,
823824
set-processor,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/set-processor.html,,
824825
shape,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/shape.html,,

specification/inference/_types/CommonTypes.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,14 @@ export class CohereTaskSettings {
903903

904904
export class CustomServiceSettings {
905905
/**
906-
* Specifies the HTTPS header parameters – such as `Authentication` or `Contet-Type` – that are required to access the custom service.
906+
* Specifies the batch size used for the semantic_text field. If the field is not provided, the default is 10.
907+
* The batch size is the maximum number of inputs in a single request to the upstream service.
908+
* The chunk within the batch are controlled by the selected chunking strategy for the semantic_text field.
909+
* @ext_doc_id sematic-text-chunking
910+
*/
911+
batch_size?: integer
912+
/**
913+
* Specifies the HTTP header parameters – such as `Authentication` or `Content-Type` – that are required to access the custom service.
907914
* For example:
908915
* ```
909916
* "headers":{

0 commit comments

Comments
 (0)