Skip to content

Commit 2df7c5c

Browse files
Adding batch size to custom service (#5523) (#5527)
* Adding batch size * Updating batch size info with link (cherry picked from commit 83b69f4)
1 parent 5b3ed98 commit 2df7c5c

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
@@ -836,6 +836,7 @@ security-saml-guide,https://www.elastic.co/docs/deploy-manage/users-roles/cluste
836836
security-settings-api-keys,https://www.elastic.co/docs/reference/elasticsearch/configuration-reference/security-settings#api-key-service-settings,,
837837
security-settings-hashing,https://www.elastic.co/docs/reference/elasticsearch/configuration-reference/security-settings#hashing-settings,,
838838
security-user-cache,https://www.elastic.co/docs/deploy-manage/users-roles/cluster-or-deployment-auth/controlling-user-cache,,
839+
sematic-text-chunking,https://www.elastic.co/docs/reference/elasticsearch/mapping-reference/semantic-text#auto-text-chunking,,
839840
service-accounts,https://www.elastic.co/docs/deploy-manage/users-roles/cluster-or-deployment-auth/service-accounts,,
840841
set-processor,https://www.elastic.co/docs/reference/enrich-processor/set-processor,,
841842
shape,https://www.elastic.co/docs/reference/elasticsearch/mapping-reference/shape,,

specification/inference/_types/CommonTypes.ts

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

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

0 commit comments

Comments
 (0)