From 94f07b404c53e59f23de45a823965f33755f11a5 Mon Sep 17 00:00:00 2001 From: Panagiotis Bailis Date: Wed, 23 Oct 2024 12:55:45 +0300 Subject: [PATCH 1/5] Adding text_similarity_rerankerretriever specification --- output/openapi/elasticsearch-openapi.json | 37 +++++++ .../elasticsearch-serverless-openapi.json | 37 +++++++ output/schema/schema-serverless.json | 98 ++++++++++++++++++- output/schema/schema.json | 98 ++++++++++++++++++- output/typescript/types.ts | 9 ++ specification/_types/Retriever.ts | 15 +++ 6 files changed, 284 insertions(+), 10 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index be06e8e079..5a673549ce 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -80689,6 +80689,9 @@ }, "rrf": { "$ref": "#/components/schemas/_types:RRFRetriever" + }, + "text_similarity_reranker": { + "$ref": "#/components/schemas/_types:TextSimilarityReranker" } }, "minProperties": 1, @@ -80814,6 +80817,40 @@ } ] }, + "_types:TextSimilarityReranker": { + "allOf": [ + { + "$ref": "#/components/schemas/_types:RetrieverBase" + }, + { + "type": "object", + "properties": { + "retriever": { + "$ref": "#/components/schemas/_types:RetrieverContainer" + }, + "rank_window_size": { + "description": "This value determines how many documents we will consider from the nested retriever.", + "type": "number" + }, + "inference_id": { + "description": "Unique identifier of the inference endpoint created using the inference API.", + "type": "string" + }, + "inference_text": { + "description": "The text snippet used as the basis for similarity comparison", + "type": "string" + }, + "field": { + "description": "The document field to be used for text similarity comparisons. This field should contain the text that will be evaluated against the inference_text", + "type": "string" + } + }, + "required": [ + "retriever" + ] + } + ] + }, "search_application._types:SearchApplication": { "allOf": [ { diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 2e4c9f2fa5..3349b1f523 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -53044,6 +53044,9 @@ }, "rrf": { "$ref": "#/components/schemas/_types:RRFRetriever" + }, + "text_similarity_reranker": { + "$ref": "#/components/schemas/_types:TextSimilarityReranker" } }, "minProperties": 1, @@ -53169,6 +53172,40 @@ } ] }, + "_types:TextSimilarityReranker": { + "allOf": [ + { + "$ref": "#/components/schemas/_types:RetrieverBase" + }, + { + "type": "object", + "properties": { + "retriever": { + "$ref": "#/components/schemas/_types:RetrieverContainer" + }, + "rank_window_size": { + "description": "This value determines how many documents we will consider from the nested retriever.", + "type": "number" + }, + "inference_id": { + "description": "Unique identifier of the inference endpoint created using the inference API.", + "type": "string" + }, + "inference_text": { + "description": "The text snippet used as the basis for similarity comparison", + "type": "string" + }, + "field": { + "description": "The document field to be used for text similarity comparisons. This field should contain the text that will be evaluated against the inference_text", + "type": "string" + } + }, + "required": [ + "retriever" + ] + } + ] + }, "search_application._types:SearchApplication": { "allOf": [ { diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index 911bde3990..2cbd0d7d5b 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -138407,9 +138407,21 @@ "namespace": "_types" } } + }, + { + "description": "A retriever that reranks the top documents based on a reranking model using the InferenceAPI", + "name": "text_similarity_reranker", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "TextSimilarityReranker", + "namespace": "_types" + } + } } ], - "specLocation": "_types/Retriever.ts#L26-L36", + "specLocation": "_types/Retriever.ts#L26-L38", "variants": { "kind": "container" } @@ -138500,7 +138512,7 @@ } } ], - "specLocation": "_types/Retriever.ts#L43-L56" + "specLocation": "_types/Retriever.ts#L45-L58" }, { "kind": "interface", @@ -138537,7 +138549,7 @@ } } ], - "specLocation": "_types/Retriever.ts#L38-L41" + "specLocation": "_types/Retriever.ts#L40-L43" }, { "inherits": { @@ -138625,7 +138637,7 @@ } } ], - "specLocation": "_types/Retriever.ts#L58-L71" + "specLocation": "_types/Retriever.ts#L60-L73" }, { "inherits": { @@ -138680,7 +138692,83 @@ } } ], - "specLocation": "_types/Retriever.ts#L73-L80" + "specLocation": "_types/Retriever.ts#L75-L82" + }, + { + "inherits": { + "type": { + "name": "RetrieverBase", + "namespace": "_types" + } + }, + "kind": "interface", + "name": { + "name": "TextSimilarityReranker", + "namespace": "_types" + }, + "properties": [ + { + "description": "The nested retriever which will produce the first-level results, that will later be used for reranking.", + "name": "retriever", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "RetrieverContainer", + "namespace": "_types" + } + } + }, + { + "description": "This value determines how many documents we will consider from the nested retriever.", + "name": "rank_window_size", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + }, + { + "description": "Unique identifier of the inference endpoint created using the inference API.", + "name": "inference_id", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "description": "The text snippet used as the basis for similarity comparison", + "name": "inference_text", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "description": "The document field to be used for text similarity comparisons. This field should contain the text that will be evaluated against the inference_text", + "name": "field", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + } + ], + "specLocation": "_types/Retriever.ts#L84-L95" }, { "inherits": { diff --git a/output/schema/schema.json b/output/schema/schema.json index 09518e42d5..cd4280986b 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -45849,7 +45849,7 @@ } } ], - "specLocation": "_types/Retriever.ts#L58-L71" + "specLocation": "_types/Retriever.ts#L60-L73" }, { "kind": "interface", @@ -47356,7 +47356,7 @@ } } ], - "specLocation": "_types/Retriever.ts#L73-L80" + "specLocation": "_types/Retriever.ts#L75-L82" }, { "kind": "interface", @@ -47783,7 +47783,7 @@ } } ], - "specLocation": "_types/Retriever.ts#L38-L41" + "specLocation": "_types/Retriever.ts#L40-L43" }, { "kind": "interface", @@ -47827,9 +47827,21 @@ "namespace": "_types" } } + }, + { + "description": "A retriever that reranks the top documents based on a reranking model using the InferenceAPI", + "name": "text_similarity_reranker", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "TextSimilarityReranker", + "namespace": "_types" + } + } } ], - "specLocation": "_types/Retriever.ts#L26-L36", + "specLocation": "_types/Retriever.ts#L26-L38", "variants": { "kind": "container" } @@ -49490,7 +49502,7 @@ } } ], - "specLocation": "_types/Retriever.ts#L43-L56" + "specLocation": "_types/Retriever.ts#L45-L58" }, { "kind": "interface", @@ -49781,6 +49793,82 @@ ], "specLocation": "_types/Knn.ts#L79-L82" }, + { + "kind": "interface", + "inherits": { + "type": { + "name": "RetrieverBase", + "namespace": "_types" + } + }, + "name": { + "name": "TextSimilarityReranker", + "namespace": "_types" + }, + "properties": [ + { + "description": "The nested retriever which will produce the first-level results, that will later be used for reranking.", + "name": "retriever", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "RetrieverContainer", + "namespace": "_types" + } + } + }, + { + "description": "This value determines how many documents we will consider from the nested retriever.", + "name": "rank_window_size", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "integer", + "namespace": "_types" + } + } + }, + { + "description": "Unique identifier of the inference endpoint created using the inference API.", + "name": "inference_id", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "description": "The text snippet used as the basis for similarity comparison", + "name": "inference_text", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "description": "The document field to be used for text similarity comparisons. This field should contain the text that will be evaluated against the inference_text", + "name": "field", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + } + ], + "specLocation": "_types/Retriever.ts#L84-L95" + }, { "kind": "enum", "members": [ diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 58fe8c541d..0c3babde2c 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -2703,6 +2703,7 @@ export interface RetrieverContainer { standard?: StandardRetriever knn?: KnnRetriever rrf?: RRFRetriever + text_similarity_reranker?: TextSimilarityReranker } export type Routing = string @@ -2904,6 +2905,14 @@ export interface TextEmbedding { model_text: string } +export interface TextSimilarityReranker extends RetrieverBase { + retriever: RetrieverContainer + rank_window_size?: integer + inference_id?: string + inference_text?: string + field?: string +} + export type ThreadType = 'cpu' | 'wait' | 'block' | 'gpu' | 'mem' export type TimeOfDay = string diff --git a/specification/_types/Retriever.ts b/specification/_types/Retriever.ts index 5118033924..7e28cb3d80 100644 --- a/specification/_types/Retriever.ts +++ b/specification/_types/Retriever.ts @@ -33,6 +33,8 @@ export class RetrieverContainer { knn?: KnnRetriever /** A retriever that produces top documents from reciprocal rank fusion (RRF). */ rrf?: RRFRetriever + /** A retriever that reranks the top documents based on a reranking model using the InferenceAPI */ + text_similarity_reranker?: TextSimilarityReranker } export class RetrieverBase { @@ -78,3 +80,16 @@ export class RRFRetriever extends RetrieverBase { /** This value determines the size of the individual result sets per query. */ rank_window_size?: integer } + +export class TextSimilarityReranker extends RetrieverBase { + /** The nested retriever which will produce the first-level results, that will later be used for reranking. */ + retriever: RetrieverContainer + /** This value determines how many documents we will consider from the nested retriever. */ + rank_window_size?: integer + /** Unique identifier of the inference endpoint created using the inference API. */ + inference_id?: string + /** The text snippet used as the basis for similarity comparison */ + inference_text?: string + /** The document field to be used for text similarity comparisons. This field should contain the text that will be evaluated against the inference_text */ + field?: string +} From 54fd49375ac452a0e6d62a19cbc839a7787829b7 Mon Sep 17 00:00:00 2001 From: Panagiotis Bailis Date: Wed, 23 Oct 2024 20:38:49 +0300 Subject: [PATCH 2/5] adding min score and availability annotation for retriever --- output/openapi/elasticsearch-openapi.json | 8 ++--- .../elasticsearch-serverless-openapi.json | 8 ++--- output/schema/schema-serverless.json | 31 ++++++++++--------- output/schema/schema.json | 31 ++++++++++--------- output/typescript/types.ts | 2 +- specification/_global/search/SearchRequest.ts | 2 +- specification/_types/Retriever.ts | 4 +-- 7 files changed, 44 insertions(+), 42 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 5a673549ce..be64264e38 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -80718,10 +80718,6 @@ "sort": { "$ref": "#/components/schemas/_types:Sort" }, - "min_score": { - "description": "Minimum _score for matching documents. Documents with a lower _score are not included in the top documents.", - "type": "number" - }, "collapse": { "$ref": "#/components/schemas/_global.search._types:FieldCollapse" } @@ -80745,6 +80741,10 @@ } } ] + }, + "min_score": { + "description": "Minimum _score for matching documents. Documents with a lower _score are not included in the top documents.", + "type": "number" } } }, diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 3349b1f523..ba576a0bfa 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -53073,10 +53073,6 @@ "sort": { "$ref": "#/components/schemas/_types:Sort" }, - "min_score": { - "description": "Minimum _score for matching documents. Documents with a lower _score are not included in the top documents.", - "type": "number" - }, "collapse": { "$ref": "#/components/schemas/_global.search._types:FieldCollapse" } @@ -53100,6 +53096,10 @@ } } ] + }, + "min_score": { + "description": "Minimum _score for matching documents. Documents with a lower _score are not included in the top documents.", + "type": "number" } } }, diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index 2cbd0d7d5b..399b54bb19 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -36026,7 +36026,8 @@ "availability": { "serverless": {}, "stack": { - "since": "8.14.0" + "since": "8.14.0", + "stability": "stable" } }, "description": "A retriever is a specification to describe top documents returned from a search. A retriever replaces other elements of the search API that also return top documents such as query and knn.", @@ -138487,18 +138488,6 @@ } } }, - { - "description": "Minimum _score for matching documents. Documents with a lower _score are not included in the top documents.", - "name": "min_score", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "float", - "namespace": "_types" - } - } - }, { "description": "Collapses the top documents by a specified key into a single top document per key.", "name": "collapse", @@ -138512,7 +138501,7 @@ } } ], - "specLocation": "_types/Retriever.ts#L45-L58" + "specLocation": "_types/Retriever.ts#L47-L58" }, { "kind": "interface", @@ -138547,9 +138536,21 @@ ], "kind": "union_of" } + }, + { + "description": "Minimum _score for matching documents. Documents with a lower _score are not included in the top documents.", + "name": "min_score", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "float", + "namespace": "_types" + } + } } ], - "specLocation": "_types/Retriever.ts#L40-L43" + "specLocation": "_types/Retriever.ts#L40-L45" }, { "inherits": { diff --git a/output/schema/schema.json b/output/schema/schema.json index cd4280986b..38bc37311a 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -32174,7 +32174,8 @@ "availability": { "serverless": {}, "stack": { - "since": "8.14.0" + "since": "8.14.0", + "stability": "stable" } }, "description": "A retriever is a specification to describe top documents returned from a search. A retriever replaces other elements of the search API that also return top documents such as query and knn.", @@ -47781,9 +47782,21 @@ } ] } + }, + { + "description": "Minimum _score for matching documents. Documents with a lower _score are not included in the top documents.", + "name": "min_score", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "float", + "namespace": "_types" + } + } } ], - "specLocation": "_types/Retriever.ts#L40-L43" + "specLocation": "_types/Retriever.ts#L40-L45" }, { "kind": "interface", @@ -49477,18 +49490,6 @@ } } }, - { - "description": "Minimum _score for matching documents. Documents with a lower _score are not included in the top documents.", - "name": "min_score", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "float", - "namespace": "_types" - } - } - }, { "description": "Collapses the top documents by a specified key into a single top document per key.", "name": "collapse", @@ -49502,7 +49503,7 @@ } } ], - "specLocation": "_types/Retriever.ts#L45-L58" + "specLocation": "_types/Retriever.ts#L47-L58" }, { "kind": "interface", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 0c3babde2c..dcf96584d9 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -2697,6 +2697,7 @@ export interface Retries { export interface RetrieverBase { filter?: QueryDslQueryContainer | QueryDslQueryContainer[] + min_score?: float } export interface RetrieverContainer { @@ -2868,7 +2869,6 @@ export interface StandardRetriever extends RetrieverBase { search_after?: SortResults terminate_after?: integer sort?: Sort - min_score?: float collapse?: SearchFieldCollapse } diff --git a/specification/_global/search/SearchRequest.ts b/specification/_global/search/SearchRequest.ts index 9fec2b244d..0b96615037 100644 --- a/specification/_global/search/SearchRequest.ts +++ b/specification/_global/search/SearchRequest.ts @@ -428,7 +428,7 @@ export interface Request extends RequestBase { rescore?: Rescore | Rescore[] /** * A retriever is a specification to describe top documents returned from a search. A retriever replaces other elements of the search API that also return top documents such as query and knn. - * @availability stack since=8.14.0 + * @availability stack since=8.14.0 stability=stable * @availability serverless */ retriever?: RetrieverContainer diff --git a/specification/_types/Retriever.ts b/specification/_types/Retriever.ts index 7e28cb3d80..42d5c5f232 100644 --- a/specification/_types/Retriever.ts +++ b/specification/_types/Retriever.ts @@ -40,6 +40,8 @@ export class RetrieverContainer { export class RetrieverBase { /** Query to filter the documents that can match. */ filter?: QueryContainer | QueryContainer[] + /** Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. */ + min_score?: float } export class StandardRetriever extends RetrieverBase { @@ -51,8 +53,6 @@ export class StandardRetriever extends RetrieverBase { terminate_after?: integer /** A sort object that that specifies the order of matching documents. */ sort?: Sort - /** Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. */ - min_score?: float /** Collapses the top documents by a specified key into a single top document per key. */ collapse?: FieldCollapse } From 341f1fa54d74954c5aead0abdb5de1b4540d354c Mon Sep 17 00:00:00 2001 From: Panagiotis Bailis Date: Tue, 29 Oct 2024 10:20:31 +0200 Subject: [PATCH 3/5] iter --- output/schema/schema-serverless.json | 4 +++- output/schema/schema.json | 4 +++- specification/_global/search/SearchRequest.ts | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index 4374be79de..c545ae287c 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -36176,7 +36176,9 @@ }, { "availability": { - "serverless": {}, + "serverless": { + "stability": "stable" + }, "stack": { "since": "8.14.0", "stability": "stable" diff --git a/output/schema/schema.json b/output/schema/schema.json index f639c053ba..939568f76d 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -32227,7 +32227,9 @@ }, { "availability": { - "serverless": {}, + "serverless": { + "stability": "stable" + }, "stack": { "since": "8.14.0", "stability": "stable" diff --git a/specification/_global/search/SearchRequest.ts b/specification/_global/search/SearchRequest.ts index 0b96615037..b2719a6b29 100644 --- a/specification/_global/search/SearchRequest.ts +++ b/specification/_global/search/SearchRequest.ts @@ -429,7 +429,7 @@ export interface Request extends RequestBase { /** * A retriever is a specification to describe top documents returned from a search. A retriever replaces other elements of the search API that also return top documents such as query and knn. * @availability stack since=8.14.0 stability=stable - * @availability serverless + * @availability serverless stability=stable */ retriever?: RetrieverContainer /** From 8e020984c3ac096c4d90ee62c01fd261d4637c58 Mon Sep 17 00:00:00 2001 From: Panagiotis Bailis Date: Tue, 29 Oct 2024 10:23:19 +0200 Subject: [PATCH 4/5] iter --- output/schema/schema-serverless.json | 7 ++----- output/schema/schema.json | 7 ++----- specification/_global/search/SearchRequest.ts | 4 ++-- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index c545ae287c..cd53a5ed5d 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -36176,12 +36176,9 @@ }, { "availability": { - "serverless": { - "stability": "stable" - }, + "serverless": {}, "stack": { - "since": "8.14.0", - "stability": "stable" + "since": "8.14.0" } }, "description": "A retriever is a specification to describe top documents returned from a search. A retriever replaces other elements of the search API that also return top documents such as query and knn.", diff --git a/output/schema/schema.json b/output/schema/schema.json index 939568f76d..73d9fb41a6 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -32227,12 +32227,9 @@ }, { "availability": { - "serverless": { - "stability": "stable" - }, + "serverless": {}, "stack": { - "since": "8.14.0", - "stability": "stable" + "since": "8.14.0" } }, "description": "A retriever is a specification to describe top documents returned from a search. A retriever replaces other elements of the search API that also return top documents such as query and knn.", diff --git a/specification/_global/search/SearchRequest.ts b/specification/_global/search/SearchRequest.ts index b2719a6b29..9fec2b244d 100644 --- a/specification/_global/search/SearchRequest.ts +++ b/specification/_global/search/SearchRequest.ts @@ -428,8 +428,8 @@ export interface Request extends RequestBase { rescore?: Rescore | Rescore[] /** * A retriever is a specification to describe top documents returned from a search. A retriever replaces other elements of the search API that also return top documents such as query and knn. - * @availability stack since=8.14.0 stability=stable - * @availability serverless stability=stable + * @availability stack since=8.14.0 + * @availability serverless */ retriever?: RetrieverContainer /** From 0ac33607948c31b5ca7eeaaf85681d67a9e054a1 Mon Sep 17 00:00:00 2001 From: Panagiotis Bailis Date: Tue, 29 Oct 2024 12:28:38 +0200 Subject: [PATCH 5/5] iter --- output/schema/schema-serverless.json | 7 +++++-- output/schema/schema.json | 7 +++++-- specification/_global/search/SearchRequest.ts | 4 ++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index 1a39175a01..80d3d4b86c 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -36176,9 +36176,12 @@ }, { "availability": { - "serverless": {}, + "serverless": { + "stability": "stable" + }, "stack": { - "since": "8.14.0" + "since": "8.14.0", + "stability": "stable" } }, "description": "A retriever is a specification to describe top documents returned from a search. A retriever replaces other elements of the search API that also return top documents such as query and knn.", diff --git a/output/schema/schema.json b/output/schema/schema.json index 3c11cc7257..c08f9db232 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -32227,9 +32227,12 @@ }, { "availability": { - "serverless": {}, + "serverless": { + "stability": "stable" + }, "stack": { - "since": "8.14.0" + "since": "8.14.0", + "stability": "stable" } }, "description": "A retriever is a specification to describe top documents returned from a search. A retriever replaces other elements of the search API that also return top documents such as query and knn.", diff --git a/specification/_global/search/SearchRequest.ts b/specification/_global/search/SearchRequest.ts index 9fec2b244d..b2719a6b29 100644 --- a/specification/_global/search/SearchRequest.ts +++ b/specification/_global/search/SearchRequest.ts @@ -428,8 +428,8 @@ export interface Request extends RequestBase { rescore?: Rescore | Rescore[] /** * A retriever is a specification to describe top documents returned from a search. A retriever replaces other elements of the search API that also return top documents such as query and knn. - * @availability stack since=8.14.0 - * @availability serverless + * @availability stack since=8.14.0 stability=stable + * @availability serverless stability=stable */ retriever?: RetrieverContainer /**