Skip to content

Commit 67cf616

Browse files
committed
Add prefix_string config option for ML models (#2363)
The prefix_strings option was added to support the E5 model in elastic/elasticsearch#102089
1 parent d63ae8a commit 67cf616

File tree

4 files changed

+102
-19
lines changed

4 files changed

+102
-19
lines changed

output/openapi/elasticsearch-serverless-openapi.json

+20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

+64-19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/ml/_types/TrainedModel.ts

+12
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ export class TrainedModelConfig {
196196
metadata?: TrainedModelConfigMetadata
197197
model_size_bytes?: ByteSize
198198
location?: TrainedModelLocation
199+
prefix_strings?: TrainedModelPrefixStrings
199200
}
200201

201202
export class TrainedModelConfigInput {
@@ -423,3 +424,14 @@ export class TrainedModelLocation {
423424
export class TrainedModelLocationIndex {
424425
name: IndexName
425426
}
427+
428+
export class TrainedModelPrefixStrings {
429+
/**
430+
* String prepended to input at ingest
431+
*/
432+
ingest: string
433+
/**
434+
* String prepended to input at search
435+
*/
436+
search: string
437+
}

0 commit comments

Comments
 (0)