diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index c76ee467ab..1a5c38325d 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -46348,7 +46348,7 @@ "index": { "type": "number" }, - "score": { + "relevance_score": { "type": "number" }, "text": { @@ -46357,7 +46357,7 @@ }, "required": [ "index", - "score" + "relevance_score" ] }, "_types:ElasticsearchVersionInfo": { diff --git a/output/schema/schema.json b/output/schema/schema.json index 4af1fa5737..979796b937 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -144221,7 +144221,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" @@ -144239,7 +144239,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 5690641025..3fff20caf3 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -12883,7 +12883,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 }