Skip to content

Enable the Panama Vector API in the Test base plugin#139769

Merged
ChrisHegarty merged 7 commits intoelastic:mainfrom
ChrisHegarty:pan_vec_everywhere
Dec 19, 2025
Merged

Enable the Panama Vector API in the Test base plugin#139769
ChrisHegarty merged 7 commits intoelastic:mainfrom
ChrisHegarty:pan_vec_everywhere

Conversation

@ChrisHegarty
Copy link
Contributor

This commit enables the Panama Vector API in the Test base plugin.

We have more and more usage of the Vector API to provide optimized implementations of certain algorithms, the most recent being a Swiss Tables hash. Rather than continuing to enable selectively for some submodules, lets just enable it in the base test plugin. Default scalar implementations are already tested by low-level unit tests, where the Panama implementation is compared to the default. We also ship with the Panama impl, so best test with it.

There are some small changes in this PR that allow for the rounding due to the ordering effects of SIMD on floating-point arithmetic, as is done elsewhere. As well as the toString of some vector scorers.

This PR has been filed in order to extract out changes from a larger PR, namely #139343.

@ChrisHegarty ChrisHegarty added >test Issues or PRs that are addressing/adding tests :Search Relevance/Vectors Vector search Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch labels Dec 18, 2025
@ChrisHegarty ChrisHegarty marked this pull request as ready for review December 18, 2025 21:41
@ChrisHegarty ChrisHegarty requested a review from a team as a code owner December 18, 2025 21:41
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-relevance (Team:Search Relevance)

Copy link
Member

@benwtrent benwtrent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My one, major concern, is, do we lose significant coverage? I am hoping not? Our comparisons vs. regular java and panama are all still ran as normal right?

@ChrisHegarty
Copy link
Contributor Author

ChrisHegarty commented Dec 19, 2025

My one, major concern, is, do we lose significant coverage? I am hoping not? Our comparisons vs. regular java and panama are all still ran as normal right?

Yes, exactly. That does not change. Any pamana implementations are compared in specific unit tests against default implementation. I check this already, but will do another double check. yeah, the default impls in the tests are created directly, so are compared irrespective of whether or not the vector api is present.

@ChrisHegarty ChrisHegarty merged commit e5a89ce into elastic:main Dec 19, 2025
35 checks passed
thecoop added a commit that referenced this pull request Jan 7, 2026
Follow on from #139769 to update some more tests for FP differences
ywangd pushed a commit to ywangd/elasticsearch that referenced this pull request Jan 7, 2026
Follow on from elastic#139769 to update some more tests for FP differences
sidosera pushed a commit to sidosera/elasticsearch that referenced this pull request Jan 7, 2026
Follow on from elastic#139769 to update some more tests for FP differences
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Search Relevance/Vectors Vector search Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch >test Issues or PRs that are addressing/adding tests v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants