bump docs version + describe oversampling

This commit is contained in:
Andrey Vasnetsov
2023-06-23 20:15:37 +02:00
parent 933ac73735
commit 1316db4bac
2 changed files with 9 additions and 2 deletions
@@ -191,7 +191,8 @@ POST /collections/{collection_name}/points/search
"params": {
"quantization": {
"ignore": false,
"rescore": true
"rescore": true,
"oversampling": 2.0
}
},
"vector": [0.2, 0.1, 0.9, 0.7],
@@ -212,6 +213,7 @@ client.search(
quantization=models.QuantizationSearchParams(
ignore=False,
rescore=True,
oversampling=2.0,
)
)
)
@@ -224,6 +226,11 @@ This can improve the search quality, but may slightly decrease the search speed,
It is recommended to disable rescore only if the original vectors are stored on a slow storage (e.g. HDD or network storage).
By default, rescore is enabled.
**Available as of v1.3.0**
`oversampling` - Defines how many extra vectors should be pre-selected using quantized index, and then re-scored using original vectors.
For example, if oversampling is 2.4 and limit is 100, then 240 vectors will be pre-selected using quantized index, and then top-100 will be returned after re-scoring.
Oversampling is useful if you want to tune the tradeoff between search speed and search quality in the query time.
## Quantization tips