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

Set embedding size for Text Embedding models #532

Merged
merged 3 commits into from
Apr 25, 2023

Conversation

davidkyle
Copy link
Member

@davidkyle davidkyle commented Apr 24, 2023

elastic/elasticsearch#95176 added the embedding_size field to text embedding model configs. The field is set at creation and cannot be changed.

This change now sets embedding_size when creating the config for text embedding models. The embedding size is found by evaluating the model and taking the length of the last dimension of the output tensor

@davidkyle davidkyle added the topic:NLP Issue or PR about NLP model support and eland_import_hub_model label Apr 25, 2023
@davidkyle davidkyle marked this pull request as ready for review April 25, 2023 07:53
Copy link
Contributor

@droberts195 droberts195 left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic:NLP Issue or PR about NLP model support and eland_import_hub_model
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants