-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Enterprise Search] Support for starting ELSER model deployment #156080
[Enterprise Search] Support for starting ELSER model deployment #156080
Conversation
...ise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout.tsx
Outdated
Show resolved
Hide resolved
...ise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout.tsx
Outdated
Show resolved
Hide resolved
…-ref HEAD~1..HEAD --fix'
|
Ok, will update.
I'm actually using EuiPanel but I think it should behave the same way. The culprit seems to be FormattedMessage inside an EuiTitle, I'm not sure how to color these because neither of them takes a
My plan is to make these critical state transitions safe, then I'll play around with the different use cases. You're talking about the cases when the user started with the Start button vs did a deployment on multiple threads? |
You da man
Ah I see, I was anticipating EuiCallout which does that auto-magically. I don't think Title accept color params. If it's not a simple change don't waste brain cycles on it.
Yeah, if you started it single-threaded just to get development going, but then forget to change it to multi threaded for production specifically because we don't surface that information somewhere useful in this screen. If that is outside the scope of this release that's fine but I'd want to have something for that moving forward. |
...ise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout.tsx
Outdated
Show resolved
Hide resolved
...earch_content/components/search_index/pipelines/ml_inference/text_expansion_callout_logic.ts
Show resolved
Hide resolved
import { Actions, createApiLogic } from '../../../../shared/api_logic/create_api_logic'; | ||
import { HttpLogic } from '../../../../shared/http'; | ||
|
||
export type StartTextExpansionModelArgs = undefined; |
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.
nitpick(non-blocking): Best practice is to specify an empty object rather than undefined.
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.
Hm, this is breaking the type checks:
/var/lib/buildkite-agent/builds/kb-n2-2-spot-a440796eab9fe2c4/elastic/kibana-pull-request/kibana/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/api/ml_models/text_expansion/create_text_expansion_model_api_logic.ts
--
| 2023-04-28 11:19:48 EDT | 11:18 error An empty interface is equivalent to `{}` @typescript-eslint/no-empty-interface
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.
@sphilipse I reverted to undefined
because I couldn't find a way to fix the CI error.
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.
Sorry, what you want to do instead is use {} wherever you're using StartTextExpansionModelArgs. But this is a nitpick anyway.
...ise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout.tsx
Show resolved
Hide resolved
...ise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout.tsx
Outdated
Show resolved
Hide resolved
...ise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout.tsx
Outdated
Show resolved
Hide resolved
...ise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout.tsx
Outdated
Show resolved
Hide resolved
...ise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout.tsx
Outdated
Show resolved
Hide resolved
...ise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout.tsx
Outdated
Show resolved
Hide resolved
…-ref HEAD~1..HEAD --fix'
…b.com/demjened/kibana into demjened/elser-start-model-deployment
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.
Thanks for addressing everything! Looks good to me.
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
…tic#156080) ## Summary We're adding action buttons to the ELSER model deployment panel, specifically to the state where the trained model has been downloaded but not started yet. The user has two options here: - Start the model (synchronously) with a basic configuration using the "Start single-threaded" button - Navigate to the Trained Models page and fine-tune the model deployment with the "Fine-tune performance" button In addition a 4th state of the panel is being introduced: the ELSER model has started. ![ELSER_start](https://user-images.githubusercontent.com/14224983/234971172-a99917dd-ec55-4df3-acd1-a6b390262104.gif) ### Checklist - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md) - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] Any UI touched in this PR is usable by keyboard only (learn more about [keyboard accessibility](https://webaim.org/techniques/keyboard/)) - [x] This renders correctly on smaller devices using a responsive layout. (You can test this [in your browser](https://www.browserstack.com/guide/responsive-testing-on-local-server)) --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 5897708)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…#156080) (#156266) # Backport This will backport the following commits from `main` to `8.8`: - [[Enterprise Search] Support for starting ELSER model deployment (#156080)](#156080) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Adam Demjen","email":"demjened@gmail.com"},"sourceCommit":{"committedDate":"2023-05-01T14:56:18Z","message":"[Enterprise Search] Support for starting ELSER model deployment (#156080)\n\n## Summary\r\n\r\nWe're adding action buttons to the ELSER model deployment panel,\r\nspecifically to the state where the trained model has been downloaded\r\nbut not started yet. The user has two options here:\r\n- Start the model (synchronously) with a basic configuration using the\r\n\"Start single-threaded\" button\r\n- Navigate to the Trained Models page and fine-tune the model deployment\r\nwith the \"Fine-tune performance\" button\r\n\r\nIn addition a 4th state of the panel is being introduced: the ELSER\r\nmodel has started.\r\n\r\n\r\n![ELSER_start](https://user-images.githubusercontent.com/14224983/234971172-a99917dd-ec55-4df3-acd1-a6b390262104.gif)\r\n\r\n\r\n### Checklist\r\n- [x] Any text added follows [EUI's writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\r\nsentence case text and includes [i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [x] Any UI touched in this PR is usable by keyboard only (learn more\r\nabout [keyboard accessibility](https://webaim.org/techniques/keyboard/))\r\n- [x] This renders correctly on smaller devices using a responsive\r\nlayout. (You can test this [in your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"589770885e87c3209a48a1b5d2b4e30576dc8c2e","branchLabelMapping":{"^v8.9.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:feature","Team:EnterpriseSearch","v8.8.0","v8.9.0"],"number":156080,"url":"https://github.com/elastic/kibana/pull/156080","mergeCommit":{"message":"[Enterprise Search] Support for starting ELSER model deployment (#156080)\n\n## Summary\r\n\r\nWe're adding action buttons to the ELSER model deployment panel,\r\nspecifically to the state where the trained model has been downloaded\r\nbut not started yet. The user has two options here:\r\n- Start the model (synchronously) with a basic configuration using the\r\n\"Start single-threaded\" button\r\n- Navigate to the Trained Models page and fine-tune the model deployment\r\nwith the \"Fine-tune performance\" button\r\n\r\nIn addition a 4th state of the panel is being introduced: the ELSER\r\nmodel has started.\r\n\r\n\r\n![ELSER_start](https://user-images.githubusercontent.com/14224983/234971172-a99917dd-ec55-4df3-acd1-a6b390262104.gif)\r\n\r\n\r\n### Checklist\r\n- [x] Any text added follows [EUI's writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\r\nsentence case text and includes [i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [x] Any UI touched in this PR is usable by keyboard only (learn more\r\nabout [keyboard accessibility](https://webaim.org/techniques/keyboard/))\r\n- [x] This renders correctly on smaller devices using a responsive\r\nlayout. (You can test this [in your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"589770885e87c3209a48a1b5d2b4e30576dc8c2e"}},"sourceBranch":"main","suggestedTargetBranches":["8.8"],"targetPullRequestStates":[{"branch":"8.8","label":"v8.8.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.9.0","labelRegex":"^v8.9.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/156080","number":156080,"mergeCommit":{"message":"[Enterprise Search] Support for starting ELSER model deployment (#156080)\n\n## Summary\r\n\r\nWe're adding action buttons to the ELSER model deployment panel,\r\nspecifically to the state where the trained model has been downloaded\r\nbut not started yet. The user has two options here:\r\n- Start the model (synchronously) with a basic configuration using the\r\n\"Start single-threaded\" button\r\n- Navigate to the Trained Models page and fine-tune the model deployment\r\nwith the \"Fine-tune performance\" button\r\n\r\nIn addition a 4th state of the panel is being introduced: the ELSER\r\nmodel has started.\r\n\r\n\r\n![ELSER_start](https://user-images.githubusercontent.com/14224983/234971172-a99917dd-ec55-4df3-acd1-a6b390262104.gif)\r\n\r\n\r\n### Checklist\r\n- [x] Any text added follows [EUI's writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\r\nsentence case text and includes [i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [x] Any UI touched in this PR is usable by keyboard only (learn more\r\nabout [keyboard accessibility](https://webaim.org/techniques/keyboard/))\r\n- [x] This renders correctly on smaller devices using a responsive\r\nlayout. (You can test this [in your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"589770885e87c3209a48a1b5d2b4e30576dc8c2e"}}]}] BACKPORT--> Co-authored-by: Adam Demjen <demjened@gmail.com>
Summary
We're adding action buttons to the ELSER model deployment panel, specifically to the state where the trained model has been downloaded but not started yet. The user has two options here:
In addition a 4th state of the panel is being introduced: the ELSER model has started.
Checklist