-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Separate Panama and Vector classes #15285
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
base: main
Are you sure you want to change the base?
Conversation
This PR
|
Ran some luceneutil benchmarks on Cohere vectors, 768d for various vector similarities x quantization bits:
|
# Conflicts: # lucene/core/src/java25/org/apache/lucene/internal/vectorization/VectorizedVectorUtilSupport.java
|
||
/** A vectorization provider that leverages the Panama Vector API. */ | ||
final class PanamaVectorizationProvider extends VectorizationProvider { | ||
final class VectorizedVectorizationProvider extends VectorizationProvider { |
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.
Can we just keep the class name the same? The Panama name is correct here. Please don't change it.
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.
Same for the other classes. Everything which uses incubatoing APIs should keep its name with "Panama" (as it is called "Panama Vectorization" in the JEP).
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.
Sure, I don't have strong opinions on this. Changed back to the original Panama*
names :)
I am not able to do any close review here, so please don't merge this now. |
Maybe we could enhance Lucene's Edit: heh, and some comment about luceneutil's |
Haha true :)
Side note: I found this cool visualizer (https://jmh.morethan.io), which takes the JSON output of JMH (add For example, I re-ran a subset of functions and recorded their output in https://gist.github.com/kaivalnp/0424bd84326aebdecd10f8144fb46c73 Also found this GH action that automatically runs and compares JMH output: https://github.com/benchmark-action/github-action-benchmark, might be interesting to add to Lucene! |
Addresses #15284