diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 80982446e2..27d0f7a302 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -46472,7 +46472,7 @@ "index": { "type": "number" }, - "score": { + "relevance_score": { "type": "number" }, "text": { @@ -46481,7 +46481,7 @@ }, "required": [ "index", - "score" + "relevance_score" ] }, "inference.unified_inference:Message": { diff --git a/output/schema/schema.json b/output/schema/schema.json index e04fb6515e..6f2fdc2b69 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -146180,7 +146180,7 @@ }, { "kind": "interface", - "description": "The rerank result object representing a single ranked document\nid: the original index of the document in the request\nscore: the score of the document relative to the query\ntext: Optional, the text of the document, if requested", + "description": "The rerank result object representing a single ranked document\nid: the original index of the document in the request\nrelevance_score: the relevance_score of the document relative to the query\ntext: Optional, the text of the document, if requested", "name": { "name": "RankedDocument", "namespace": "inference._types" @@ -146198,7 +146198,7 @@ } }, { - "name": "score", + "name": "relevance_score", "required": true, "type": { "kind": "instance_of", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 7e7b7c662d..ec73a18bb4 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -13016,7 +13016,7 @@ export interface InferenceInferenceResult { export interface InferenceRankedDocument { index: integer - score: float + relevance_score: float text?: string } diff --git a/specification/inference/_types/Results.ts b/specification/inference/_types/Results.ts index 54a5ddda9d..6cf6ba25c6 100644 --- a/specification/inference/_types/Results.ts +++ b/specification/inference/_types/Results.ts @@ -67,12 +67,12 @@ export class CompletionResult { /** * The rerank result object representing a single ranked document * id: the original index of the document in the request - * score: the score of the document relative to the query + * relevance_score: the relevance_score of the document relative to the query * text: Optional, the text of the document, if requested */ export class RankedDocument { index: integer - score: float + relevance_score: float text?: string }