diff --git a/output/schema/schema.json b/output/schema/schema.json index 7522edfca6..7e63454afc 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -155400,7 +155400,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L710-L744" + "specLocation": "inference/_types/CommonTypes.ts#L723-L757" }, { "kind": "enum", @@ -155413,7 +155413,7 @@ "name": "ElasticsearchServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L760-L762" + "specLocation": "inference/_types/CommonTypes.ts#L773-L775" }, { "kind": "interface", @@ -155436,7 +155436,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L746-L752" + "specLocation": "inference/_types/CommonTypes.ts#L759-L765" }, { "kind": "enum", @@ -155455,7 +155455,7 @@ "name": "ElasticsearchTaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L754-L758" + "specLocation": "inference/_types/CommonTypes.ts#L767-L771" }, { "kind": "interface", @@ -155501,7 +155501,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L764-L790" + "specLocation": "inference/_types/CommonTypes.ts#L777-L803" }, { "kind": "enum", @@ -155514,7 +155514,7 @@ "name": "ElserServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L796-L798" + "specLocation": "inference/_types/CommonTypes.ts#L809-L811" }, { "kind": "enum", @@ -155527,7 +155527,7 @@ "name": "ElserTaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L792-L794" + "specLocation": "inference/_types/CommonTypes.ts#L805-L807" }, { "kind": "enum", @@ -155540,7 +155540,7 @@ "name": "GoogleAiServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L823-L825" + "specLocation": "inference/_types/CommonTypes.ts#L836-L838" }, { "kind": "interface", @@ -155588,7 +155588,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L800-L816" + "specLocation": "inference/_types/CommonTypes.ts#L813-L829" }, { "kind": "enum", @@ -155604,7 +155604,7 @@ "name": "GoogleAiStudioTaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L818-L821" + "specLocation": "inference/_types/CommonTypes.ts#L831-L834" }, { "kind": "interface", @@ -155678,7 +155678,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L827-L853" + "specLocation": "inference/_types/CommonTypes.ts#L840-L866" }, { "kind": "enum", @@ -155691,7 +155691,7 @@ "name": "GoogleVertexAIServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L873-L875" + "specLocation": "inference/_types/CommonTypes.ts#L886-L888" }, { "kind": "interface", @@ -155725,7 +155725,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L855-L864" + "specLocation": "inference/_types/CommonTypes.ts#L868-L877" }, { "kind": "enum", @@ -155747,7 +155747,7 @@ "name": "GoogleVertexAITaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L866-L871" + "specLocation": "inference/_types/CommonTypes.ts#L879-L884" }, { "kind": "interface", @@ -155795,7 +155795,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L877-L898" + "specLocation": "inference/_types/CommonTypes.ts#L890-L911" }, { "kind": "enum", @@ -155808,7 +155808,7 @@ "name": "HuggingFaceServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L904-L906" + "specLocation": "inference/_types/CommonTypes.ts#L917-L919" }, { "kind": "enum", @@ -155821,7 +155821,7 @@ "name": "HuggingFaceTaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L900-L902" + "specLocation": "inference/_types/CommonTypes.ts#L913-L915" }, { "kind": "interface", @@ -156784,7 +156784,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L908-L937" + "specLocation": "inference/_types/CommonTypes.ts#L921-L950" }, { "kind": "enum", @@ -156797,7 +156797,7 @@ "name": "JinaAIServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L967-L969" + "specLocation": "inference/_types/CommonTypes.ts#L980-L982" }, { "kind": "enum", @@ -156816,7 +156816,7 @@ "name": "JinaAISimilarityType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L971-L975" + "specLocation": "inference/_types/CommonTypes.ts#L984-L988" }, { "kind": "interface", @@ -156862,7 +156862,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L939-L960" + "specLocation": "inference/_types/CommonTypes.ts#L952-L973" }, { "kind": "enum", @@ -156878,7 +156878,7 @@ "name": "JinaAITaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L962-L965" + "specLocation": "inference/_types/CommonTypes.ts#L975-L978" }, { "kind": "enum", @@ -156900,7 +156900,7 @@ "name": "JinaAITextEmbeddingTask", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L977-L982" + "specLocation": "inference/_types/CommonTypes.ts#L990-L995" }, { "kind": "interface", @@ -157058,7 +157058,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L984-L1011" + "specLocation": "inference/_types/CommonTypes.ts#L997-L1024" }, { "kind": "enum", @@ -157071,7 +157071,7 @@ "name": "MistralServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1017-L1019" + "specLocation": "inference/_types/CommonTypes.ts#L1030-L1032" }, { "kind": "enum", @@ -157084,7 +157084,7 @@ "name": "MistralTaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1013-L1015" + "specLocation": "inference/_types/CommonTypes.ts#L1026-L1028" }, { "kind": "interface", @@ -157171,7 +157171,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1021-L1063" + "specLocation": "inference/_types/CommonTypes.ts#L1034-L1076" }, { "kind": "enum", @@ -157184,7 +157184,7 @@ "name": "OpenAIServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1079-L1081" + "specLocation": "inference/_types/CommonTypes.ts#L1092-L1094" }, { "kind": "interface", @@ -157206,7 +157206,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1065-L1071" + "specLocation": "inference/_types/CommonTypes.ts#L1078-L1084" }, { "kind": "enum", @@ -157225,7 +157225,7 @@ "name": "OpenAITaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1073-L1077" + "specLocation": "inference/_types/CommonTypes.ts#L1086-L1090" }, { "kind": "interface", @@ -158053,7 +158053,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1083-L1114" + "specLocation": "inference/_types/CommonTypes.ts#L1096-L1127" }, { "kind": "enum", @@ -158066,7 +158066,7 @@ "name": "VoyageAIServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1147-L1149" + "specLocation": "inference/_types/CommonTypes.ts#L1160-L1162" }, { "kind": "interface", @@ -158126,7 +158126,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1116-L1140" + "specLocation": "inference/_types/CommonTypes.ts#L1129-L1153" }, { "kind": "enum", @@ -158142,7 +158142,7 @@ "name": "VoyageAITaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1142-L1145" + "specLocation": "inference/_types/CommonTypes.ts#L1155-L1158" }, { "kind": "interface", @@ -158230,7 +158230,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1151-L1188" + "specLocation": "inference/_types/CommonTypes.ts#L1164-L1201" }, { "kind": "enum", @@ -158243,7 +158243,7 @@ "name": "WatsonxServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1194-L1196" + "specLocation": "inference/_types/CommonTypes.ts#L1207-L1209" }, { "kind": "enum", @@ -158256,7 +158256,7 @@ "name": "WatsonxTaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1190-L1192" + "specLocation": "inference/_types/CommonTypes.ts#L1203-L1205" }, { "kind": "request", diff --git a/specification/inference/_types/CommonTypes.ts b/specification/inference/_types/CommonTypes.ts index 9bd0f96cf7..222544379b 100644 --- a/specification/inference/_types/CommonTypes.ts +++ b/specification/inference/_types/CommonTypes.ts @@ -700,13 +700,26 @@ export class EisServiceSettings { } export enum EisTaskType { - chat_completion + chat_completion, + rerank } export enum EisServiceType { elastic } +export class EisTaskSettings { + /** + * For a `rerank` task, return doc text within the results. + */ + return_documents?: boolean + + /** + * For a `rerank` task, the number of the top N documents that should be returned. + */ + top_n?: integer +} + export class ElasticsearchServiceSettings { /** * Adaptive allocations configuration details.