You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/query-languages/query-dsl/query-dsl-knn-query.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,25 +100,25 @@ The filter is a pre-filter, meaning that it is applied **during** the approximat
100
100
`rescore_vector` {applies_to}`stack: preview 9.0, ga 9.1`
101
101
: (Optional, object) Apply oversampling and rescoring to quantized vectors.
102
102
103
-
::::{note}
104
-
Rescoring only makes sense for quantized vectors; when [quantization](/reference/elasticsearch/mapping-reference/dense-vector.md#dense-vector-quantization) is not used, the original vectors are used for scoring. Rescore option will be ignored for non-quantized `dense_vector` fields.
105
-
::::
106
-
103
+
::::{note}
104
+
Rescoring only makes sense for quantized vectors; when [quantization](/reference/elasticsearch/mapping-reference/dense-vector.md#dense-vector-quantization) is not used, the original vectors are used for scoring. Rescore option will be ignored for non-quantized `dense_vector` fields.
105
+
::::
107
106
108
-
`oversample`
109
-
: (Required, float)
107
+
Parameter for `rescore_vector`:
108
+
109
+
`oversample`
110
+
: (Required, float)
110
111
111
-
Applies the specified oversample factor to `k` on the approximate kNN search. The approximate kNN search will:
112
+
Applies the specified oversample factor to `k` on the approximate kNN search. The approximate kNN search will:
112
113
113
-
* Retrieve `num_candidates` candidates per shard.
114
-
* From these candidates, the top `k * oversample` candidates per shard will be rescored using the original vectors.
115
-
* The top `k` rescored candidates will be returned.
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`
114
+
* Retrieve `num_candidates` candidates per shard.
115
+
* From these candidates, the top `k * oversample` candidates per shard will be rescored using the original vectors.
116
+
* The top `k` rescored candidates will be returned. 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`
119
119
120
120
121
-
See [oversampling and rescoring quantized vectors](docs-content://solutions/search/vector/knn.md#dense-vector-knn-search-rescoring) for details.
121
+
See [oversampling and rescoring quantized vectors](docs-content://solutions/search/vector/knn.md#dense-vector-knn-search-rescoring) for details.
0 commit comments