diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index c1aabcce5d..5b5501fa1e 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -46462,7 +46462,7 @@ "index": { "type": "number" }, - "score": { + "relevance_score": { "type": "number" }, "text": { @@ -46471,7 +46471,7 @@ }, "required": [ "index", - "score" + "relevance_score" ] }, "inference.unified_inference:Message": { diff --git a/output/schema/schema.json b/output/schema/schema.json index 92c067b0cf..eedefe8b0f 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -146002,7 +146002,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" @@ -146020,7 +146020,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 3e53dc2c7f..232257bfed 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 }