mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-23 01:50:35 +00:00
This patch adds vector index options allowing to enable quantization and oversampling. Specific quantization value will be used internally by vector store. In the current implementation, get_oversampling allows us to decide how many times more candidates to retrieve from vector store - final response is still trimmed to the given limit. It is a first step to allow rescoring - recalculation of similarity metric and re-ranking. Without rescoring oversampling will be also further optimized to happen internally in vector store. `test/vector_search/rescoring_test.cc` implements basic tests of added functionality. New options are documented in `docs/cql/secondary-indexes.rst`. Fixes https://scylladb.atlassian.net/browse/SCYLLADB-82 Ref https://scylladb.atlassian.net/browse/SCYLLADB-83 New feature - no backporting Closes scylladb/scylladb#27677 * github.com:scylladb/scylladb: vector_search: doc: Document new index options vector_search: test: Test oversampling vector_search: test: Add rescoring index options test vector_search: test: Extract Configure utility to shared header vector_index: introduce `quantization` and `oversampling` options