Skip to content

Commit 4dd124b

Browse files
authored
add availability to oversample value of 0 (#131707)
1 parent 65e20e2 commit 4dd124b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

docs/reference/elasticsearch/mapping-reference/dense-vector.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,10 @@ $$$dense-vector-index-options$$$
295295
: (Optional, object) An optional section that configures automatic vector rescoring on knn queries for the given field. Only applicable to quantized index types.
296296
:::::{dropdown} Properties of rescore_vector
297297
`oversample`
298-
: (required, float) The amount to oversample the search results by. This value should be greater than `1.0` and less than `10.0` or exactly `0` to indicate no oversampling & rescoring should occur. The higher the value, the more vectors will be gathered and rescored with the raw values per shard.
298+
: (required, float) The amount to oversample the search results by. This value should be one of the following:
299+
* Greater than `1.0` and less than `10.0`
300+
* Exactly `0` to indicate no oversampling and rescoring should occur {applies_to}`stack: ga 9.1`
301+
: The higher the value, the more vectors will be gathered and rescored with the raw values per shard.
299302
: In case a knn query specifies a `rescore_vector` parameter, the query `rescore_vector` parameter will be used instead.
300303
: See [oversampling and rescoring quantized vectors](docs-content://solutions/search/vector/knn.md#dense-vector-knn-search-rescoring) for details.
301304
:::::

docs/reference/query-languages/query-dsl/query-dsl-knn-query.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ Rescoring only makes sense for quantized vectors; when [quantization](/reference
113113
* Retrieve `num_candidates` candidates per shard.
114114
* From these candidates, the top `k * oversample` candidates per shard will be rescored using the original vectors.
115115
* The top `k` rescored candidates will be returned.
116-
Must be >= 1f to indicate oversample factor, or exactly `0` to indicate that no oversampling and rescoring should occur.
116+
Must be one of the following values:
117+
* \>= 1f to indicate the oversample factor
118+
* Exactly `0` to indicate that no oversampling and rescoring should occur. {applies_to}`stack: ga 9.1`
117119

118120

119121
See [oversampling and rescoring quantized vectors](docs-content://solutions/search/vector/knn.md#dense-vector-knn-search-rescoring) for details.

0 commit comments

Comments
 (0)