-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Update Default value of Oversample for bbq #127134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Default value of Oversample for bbq #127134
Conversation
e1acdbe
to
70db95c
Compare
@benwtrent @jimczi While I work on the yaml tests, can I get a quick feedback on the current changes? |
@@ -1462,6 +1463,9 @@ public IndexOptions parseIndexOptions(String fieldName, Map<String, ?> indexOpti | |||
RescoreVector rescoreVector = null; | |||
if (indexVersion.onOrAfter(ADD_RESCORE_PARAMS_TO_QUANTIZED_VECTORS)) { | |||
rescoreVector = RescoreVector.fromIndexOptions(indexOptionsMap, indexVersion); | |||
if (rescoreVector == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should only happen on new indices. Please add a new index version to bar changing this on existing indices.
server/src/test/java/org/elasticsearch/index/mapper/vectors/DenseVectorFieldMapperTests.java
Show resolved
Hide resolved
Hi @Samiul-TheSoccerFan, I've created a changelog YAML for you. |
Pinging @elastic/es-search-relevance (Team:Search Relevance) |
@benwtrent This is safe to merge or wait for @jimczi's review? |
We aren't in a hurry. Let's see what @jimczi says :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @Samiul-TheSoccerFan
Let's have a follow up to update the documentation @Samiul-TheSoccerFan ? |
Added Documentation PR: elastic/docs-content#1290 |
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
This adds backport index versions in preparation for backporting elastic#127134
* Update Default value of Oversample for bbq (#127134) * Unit test to validate default behavior * adding default value to oversample for bbq * Fix code style issue * Update docs/changelog/127134.yaml * Update changelog * Adding index version to support only new indices * Update index version name to better match * Adding a simple yaml test to verify the yaml functionality for oversample value * Refactor knn float to add rescore vector by default when index type is one of bbq * adding yaml tests to verify oversampel default value * Fixing format issue for not_exists (cherry picked from commit cd4fcbf) * Adding backport index versions for PR #127134 (#127724) This adds backport index versions in preparation for backporting #127134 --------- Co-authored-by: Samiul Monir <[email protected]>
This adds backport index versions in preparation for backporting elastic#127134
During index mapping when a
dense_vector
field is defined withbbq_*
asindex_options
, theoversample
value is now set to3.0
by default.bbq_hnsw
::bbq_flat
::int8
::Respect the provided value for
bbq_*
: