-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[9.1] fix(semantic highlighter): add vector similarity queries and bbq_disk support (#138140) #138555
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
Conversation
… support (elastic#138140) (cherry picked from commit 8603933) # Conflicts: # x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/InferenceFeatures.java # x-pack/plugin/inference/src/yamlRestTest/resources/rest-api-spec/test/inference/90_semantic_text_highlighter.yml
| } else if (query instanceof DenseVectorQuery.Floats floatsQuery) { | ||
| queries.add(fieldType.createExactKnnQuery(VectorData.fromFloats(floatsQuery.getQuery()), null)); | ||
| queries.add(fieldType.createExactKnnQuery(VectorData.fromFloats(floatsQuery.getQuery()), similarity)); | ||
| } else if (query instanceof IVFKnnFloatVectorQuery ivfQuery) { |
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.
💭 We probably don't need these here as bbq_disk is supported from 9.2
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.
Removed
kderusso
left a comment
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.
@mromaios Can we please figure out what's going on with the tests in this branch? Thanks!
Backport
This will backport the following commits from
mainto9.1:Questions ?
Please refer to the Backport tool documentation