mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 09:28:55 -04:00
This adds a new parameter to the quantized index mapping that allows default oversampling and rescoring to occur. This doesn't adjust any of the defaults. It allows it to be configured. When the user provides `rescore_vector: {oversample: <number>}` in the query it will overwrite it. For example, here is how to use it with bbq: ``` PUT rescored_bbq { "mappings": { "properties": { "vector": { "type": "dense_vector", "index_options": { "type": "bbq_hnsw", "rescore_vector": {"oversample": 3.0} } } } } } ``` Then, when querying, it will auto oversample the `k` by `3x` and rerank with the raw vectors. ``` POST _search { "knn": { "query_vector": [...], "field": "vector" } } ``` |
||
---|---|---|
.. | ||
data-analysis | ||
elasticsearch | ||
elasticsearch-plugins | ||
indices | ||
ingestion-tools | ||
query-languages | ||
scripting-languages | ||
search/search-your-data | ||
setup/install/docker | ||
watcher/images | ||
community-contributed.md | ||
index.md | ||
toc.yml |