-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[Inference API] Handle preconfigured endpoints with embedding task type #141788
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
base: main
Are you sure you want to change the base?
[Inference API] Handle preconfigured endpoints with embedding task type #141788
Conversation
This commit allows ElasticInferenceServiceAuthorizationModel to handle proconfigured endpoints with the new embedding task type where previously an error would have been logged.
|
Pinging @elastic/search-inference-team (Team:Search - Inference) |
jonathan-buttner
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just one question about the EIS task type path.
| nameDense, | ||
| idDenseMultimodal, | ||
| nameDenseMultimodal, | ||
| createTaskTypeObject(EIS_TEXT_EMBED_PATH, TaskType.EMBEDDING.toString()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we be using EIS_MULTIMODAL_EMBED_PATH instead of EIS_TEXT_EMBED_PATH?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, good catch. The test passes either way, but that's no reason not to be correct.
jonathan-buttner
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, how about we add an embedding example to the auth response in this variable:
EIS_AUTHORIZATION_RESPONSE_V2.
That'll probably cause some test failures that'll need EMBEDDING added to an enum set.
This commit allows ElasticInferenceServiceAuthorizationModel to handle proconfigured endpoints with the new embedding task type where previously an error would have been logged.