You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: specification/inference/_types/CommonTypes.ts
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1322,6 +1322,24 @@ export class ElasticsearchServiceSettings {
1322
1322
* The maximum value is 32.
1323
1323
*/
1324
1324
num_threads: integer
1325
+
/**
1326
+
* Available only for the `rerank` task type using the Elastic reranker model.
1327
+
* Controls the strategy used for processing long documents during inference.
1328
+
*
1329
+
* Possible values:
1330
+
* - `truncate` (default): Processes only the beginning of each document.
1331
+
* - `chunk`: Splits long documents into smaller parts (chunks) before inference.
1332
+
*
1333
+
* When `long_document_strategy` is set to `chunk`, Elasticsearch splits each document into smaller parts but still returns a single score per document.
1334
+
* That score reflects the highest relevance score among all chunks.
1335
+
*/
1336
+
long_document_strategy?: string
1337
+
/**
1338
+
* Only for the `rerank` task type.
1339
+
* Limits the number of chunks per document that are sent for inference when chunking is enabled.
1340
+
* If not set, all chunks generated for the document are processed.
0 commit comments