Skip to content
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

Fix vector similarity test failures for half-byte #110065

Merged
merged 2 commits into from
Jun 25, 2024

Conversation

benwtrent
Copy link
Member

The test that is set up assumes a single shard. Since the test uses so few vectors and few dimensions, the statistics are pretty sensitive.

CCS tests seem to allow more than one write shard (via more than one cluster). Consequently, the similarity detected can vary pretty wildly. However, through empirical testing, I found that the desired vector seems to always have a score > 0.0034 and all the other vectors have a score < 0.001. This commit adjusts this similarity threshold accordingly. This should make the test flakiness go away in CCS testing.

closes: #109881

@benwtrent benwtrent added >test Issues or PRs that are addressing/adding tests :Search/Vectors Vector search v8.15.0 labels Jun 21, 2024
@elasticsearchmachine elasticsearchmachine added the Team:Search Meta label for search team label Jun 21, 2024
@elasticsearchmachine
Copy link
Collaborator

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

Copy link
Contributor

@ChrisHegarty ChrisHegarty left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@tteofili tteofili left a comment

Choose a reason for hiding this comment

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

LGTM

@benwtrent benwtrent added auto-merge Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) labels Jun 25, 2024
@benwtrent
Copy link
Member Author

@elasticmachine update branch

@elasticsearchmachine elasticsearchmachine merged commit 759f61d into elastic:main Jun 25, 2024
15 checks passed
@benwtrent benwtrent deleted the testfix/109881 branch June 25, 2024 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) :Search/Vectors Vector search Team:Search Meta label for search team >test Issues or PRs that are addressing/adding tests v8.15.0
Projects
None yet
5 participants