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
[ML] ELSER v2 download in the Trained Models UI #167407
Conversation
Pinging @elastic/ml-ui (:ml) |
As discussed separately, we need to think of a better way of directing the user to which of the two ELSER models is recommended for their architecture. With the current use of a badge, it can appear like we're recommending of all the users' third party, models from DFA jobs, and ELSER models, that this one is especially recommended. I think simply adding an extra sentence to the end of the model description would be an improvement over the badge. Any thoughts on a better UX here @mdefazio ? |
Went back and forth on this as well, and agree there's some oddities for this iteration. The I had played around with other placements of the badge (as we discussed in Slack), but agree that simple text might be preferable here. Here's an option appending cc/ @julianrosado in case you have some thoughts here too. I'm also dropping in an option showing a badge next to the download button. Not sure how much complexity this brings to the implementation (with conditional column rendering), but provides a clear landmark near the download action. |
x-pack/plugins/ml/public/application/model_management/models_list.tsx
Outdated
Show resolved
Hide resolved
@darnautov @peteharverson I've gone back and forth on the additional badge for 'recommended'. Here are two options and I'll leave it to you for what's possible at this stage. Note the additional banner. This should show if v1 is already downloaded. If not, then shouldn't need this and they would only see v2 anyway.
Alternative version using the badge next to the download button for extra affordance |
@peteharverson might have a more accurate link |
I confirmed with @szabosteve that the link should go to the existing docs page, which will be updated for ELSER v2. |
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.
UI text and doc URL LGTM!
> | ||
<FormattedMessage | ||
id="xpack.ml.trainedModels.modelsList.newElserModelDescription" | ||
defaultMessage="ELSER model v2 release shows faster performance and better relevance for improved information retrieval." |
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.
defaultMessage="ELSER model v2 release shows faster performance and better relevance for improved information retrieval." | |
defaultMessage="The ELSER v2 model has improved speed and relevance, delivering faster, more performant information retrieval." |
Totally optional rewording suggestion :)
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.
Do we want to substitue "information retrieval" for "text expansion" or "semantic search"?
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.
Reviewed the text for the callout with @arisonl and will go with A new version of ELSER that shows faster performance and improved relevance is now available. View documentation for information on how to start using it.
@elasticmachine merge upstream |
x-pack/plugins/ml/public/application/model_management/model_actions.tsx
Outdated
Show resolved
Hide resolved
}), | ||
'data-test-subj': 'mlModelsTableRowDownloadModelAction', | ||
// @ts-ignore |
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.
could be @ts-ignore
be removed or have a reason added to it?
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.
Added a comment in beef167
x-pack/plugins/ml/server/models/model_management/models_provider.ts
Outdated
Show resolved
Hide resolved
@@ -95,17 +109,75 @@ interface Props { | |||
updatePageState?: (update: Partial<ListingPageUrlState>) => void; | |||
} | |||
|
|||
export const getModelStateColor = ( |
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.
This file is pretty big, could this function be moved to a utils file?
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.
Refactored in beef167
x-pack/plugins/ml/public/application/model_management/models_list.tsx
Outdated
Show resolved
Hide resolved
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.
Tested (including on a deployment with a v1 model downloaded), and LGTM.
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.
LGTM
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: cc @darnautov |
Summary
Adds support for ELSER v2 download from the Trained Models UI.
Notes for reviews
Checklist