From b9e380d015fcb31f180332e71c8453f6b806d422 Mon Sep 17 00:00:00 2001 From: Huaixinww <141887897+Huaixinww@users.noreply.github.com> Date: Tue, 11 Feb 2025 01:10:46 +0800 Subject: [PATCH] rename score to relevance_score (#3751) (cherry picked from commit f6305383766f28d9fc2a4d68494703b7373835d9) --- output/openapi/elasticsearch-serverless-openapi.json | 4 ++-- output/schema/schema.json | 4 ++-- output/typescript/types.ts | 2 +- specification/inference/_types/Results.ts | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index e3f1f8d988..0a4ef3af23 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -46636,7 +46636,7 @@ "index": { "type": "number" }, - "score": { + "relevance_score": { "type": "number" }, "text": { @@ -46645,7 +46645,7 @@ }, "required": [ "index", - "score" + "relevance_score" ] }, "inference.unified_inference:Message": { diff --git a/output/schema/schema.json b/output/schema/schema.json index 99219ab041..41044bc949 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -146233,7 +146233,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" @@ -146251,7 +146251,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 fd2a2c0f2b..ff463c2470 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -13018,7 +13018,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 1a35289bab..fd0bfc5b93 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 }