Skip to content

Fix flaky MMR diversification YAML tests#143706

Open
mayya-sharipova wants to merge 1 commit intoelastic:mainfrom
mayya-sharipova:fix-mrr-test
Open

Fix flaky MMR diversification YAML tests#143706
mayya-sharipova wants to merge 1 commit intoelastic:mainfrom
mayya-sharipova:fix-mrr-test

Conversation

@mayya-sharipova
Copy link
Contributor

The default int8_hnsw index type quantizes float32 vectors to
int8, introducing enough scoring error to non-deterministically
reorder documents with close cosine similarities. With only 4
dimensions the quantization is particularly coarse.

Use explicit hnsw index type on test dense_vector mappings to
get exact float scoring and deterministic KNN result ordering.
Update expected results to reflect exact cosine ordering.

Closes #143430
Closes #143609

The default int8_hnsw index type quantizes float32 vectors to
int8, introducing enough scoring error to non-deterministically
reorder documents with close cosine similarities. With only 4
dimensions the quantization is particularly coarse.

Use explicit hnsw index type on test dense_vector mappings to
get exact float scoring and deterministic KNN result ordering.
Update expected results to reflect exact cosine ordering.

Closes elastic#143430
Closes elastic#143609
@mayya-sharipova mayya-sharipova added >test Issues or PRs that are addressing/adding tests :Search Relevance/Vectors Vector search v9.4.0 labels Mar 5, 2026
@elasticsearchmachine elasticsearchmachine added the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label Mar 5, 2026
@elasticsearchmachine
Copy link
Collaborator

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

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

2 participants