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/mapping/types/dense-vector.asciidoc
+6-9Lines changed: 6 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -117,12 +117,10 @@ that sacrifices result accuracy for improved speed.
117
117
The `dense_vector` type supports quantization to reduce the memory footprint required when <<approximate-knn, searching>> `float` vectors.
118
118
The three following quantization strategies are supported:
119
119
120
-
+
121
-
--
122
-
`int8` - Quantizes each dimension of the vector to 1-byte integers. This reduces the memory footprint by 75% (or 4x) at the cost of some accuracy.
123
-
`int4` - Quantizes each dimension of the vector to half-byte integers. This reduces the memory footprint by 87% (or 8x) at the cost of accuracy.
124
-
`bbq` - experimental:[] Better binary quantization which reduces each dimension to a single bit precision. This reduces the memory footprint by 96% (or 32x) at a larger cost of accuracy. Generally, oversampling during query time and reranking can help mitigate the accuracy loss.
125
-
--
120
+
* `int8` - Quantizes each dimension of the vector to 1-byte integers. This reduces the memory footprint by 75% (or 4x) at the cost of some accuracy.
121
+
* `int4` - Quantizes each dimension of the vector to half-byte integers. This reduces the memory footprint by 87% (or 8x) at the cost of accuracy.
122
+
* `bbq` - experimental:[] Better binary quantization which reduces each dimension to a single bit precision. This reduces the memory footprint by 96% (or 32x) at a larger cost of accuracy. Generally, oversampling during query time and reranking can help mitigate the accuracy loss.
123
+
126
124
127
125
When using a quantized format, you may want to oversample and rescore the results to improve accuracy. See <<dense-vector-knn-search-reranking, oversampling and rescoring>> for more information.
128
126
@@ -245,12 +243,11 @@ their vector field's similarity to the query vector. The `_score` of each
245
243
document will be derived from the similarity, in a way that ensures scores are
246
244
positive and that a larger score corresponds to a higher ranking.
247
245
Defaults to `l2_norm` when `element_type: bit` otherwise defaults to `cosine`.
248
-
249
-
NOTE: `bit` vectors only support `l2_norm` as their similarity metric.
250
-
251
246
+
252
247
^*^ This parameter can only be specified when `index` is `true`.
253
248
+
249
+
NOTE: `bit` vectors only support `l2_norm` as their similarity metric.
0 commit comments