Skip to content

Make int8_hnsw our default index for new dense-vector fields#106836

Merged
elasticsearchmachine merged 12 commits intoelastic:mainfrom
benwtrent:feature/update-default-vector-index-to-int8_hnsw
Apr 1, 2024
Merged

Make int8_hnsw our default index for new dense-vector fields#106836
elasticsearchmachine merged 12 commits intoelastic:mainfrom
benwtrent:feature/update-default-vector-index-to-int8_hnsw

Conversation

@benwtrent
Copy link
Copy Markdown
Member

For float32, there is no compelling reason to use all the memory required by default for HNSW. Using int8_hnsw provides a much saner default when it comes to cost vs relevancy.

So, on all new indices that use dense_vector and want to index them for fast search, we will default to int8_hnsw.

Users can still customize their parameters, or prefer hnsw over float32 if they so desire.

@benwtrent benwtrent added >enhancement :Search Foundations/Mapping Index mappings, including merging and defining field types test-full-bwc Trigger full BWC version matrix tests v8.14.0 labels Mar 27, 2024
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

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

@elasticsearchmachine elasticsearchmachine added the Team:Search Meta label for search team label Mar 27, 2024
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Hi @benwtrent, I've created a changelog YAML for you.

Copy link
Copy Markdown
Member

@carlosdelest carlosdelest left a comment

Choose a reason for hiding this comment

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

The changes LGTM 💯

Are we planning to add doc changes explaining the new defaults?

…thub.com:benwtrent/elasticsearch into feature/update-default-vector-index-to-int8_hnsw
Copy link
Copy Markdown
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.

thanks Ben, the changes look good

@benwtrent
Copy link
Copy Markdown
Member Author

@elasticmachine update branch

@benwtrent benwtrent added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Apr 1, 2024
@elasticsearchmachine elasticsearchmachine merged commit 89bf4b3 into elastic:main Apr 1, 2024
@benwtrent benwtrent deleted the feature/update-default-vector-index-to-int8_hnsw branch April 1, 2024 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) >enhancement :Search Foundations/Mapping Index mappings, including merging and defining field types Team:Search Meta label for search team test-full-bwc Trigger full BWC version matrix tests v8.14.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants