-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add inference endpoints management page (#184614)
## Description In this PR, we implemented a view for managing inference endpoints. The changes include the following items for both **Serverless** and **Stack**. - A blank page will be displayed if no inference endpoints are available. - A page displaying a list of inference endpoints. The user can view various details about each endpoint, such as the endpoint itself, the provider, and the type. The table supports pagination and sorting. - Users can add a new inference endpoint using Elasticsearch models and third-party APIs, including Hugging Face, Cohere, and OpenAI. To keep the changes in this PR manageable, the following items are **out of scope** but will be added in subsequent PRs - Option to delete an inference endpoint - Filtering and Search bar - Information about allocations, thread. - Icons for **Provider** - Deployment status of underlying trained models ## Empty page in Stack Management https://github.com/elastic/kibana/assets/132922331/e2064ee8-3623-457f-8a04-19603e97e815 ## Page with all inference endpoints in Stack Management https://github.com/elastic/kibana/assets/132922331/89bec450-1569-4425-b013-5058b577b95a ## Inference Endpoints Management in Serverless https://github.com/elastic/kibana/assets/132922331/bd8b6b71-0e09-49f4-aa9a-19338a1da225 --------- Co-authored-by: Liam Thompson <[email protected]> Co-authored-by: István Zoltán Szabó <[email protected]> Co-authored-by: kibanamachine <[email protected]>
- Loading branch information
1 parent
0486de7
commit db425e3
Showing
92 changed files
with
6,825 additions
and
3 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
...search/public/applications/enterprise_search_relevance/components/inference_endpoints.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import React from 'react'; | ||
|
||
import { useValues } from 'kea'; | ||
|
||
import { i18n } from '@kbn/i18n'; | ||
|
||
import { KibanaLogic } from '../../shared/kibana'; | ||
|
||
import { EnterpriseSearchRelevancePageTemplate } from './layout/page_template'; | ||
|
||
export const InferenceEndpoints: React.FC = () => { | ||
const { searchInferenceEndpoints } = useValues(KibanaLogic); | ||
|
||
if (!searchInferenceEndpoints) { | ||
return null; | ||
} | ||
return ( | ||
<searchInferenceEndpoints.InferenceEdnpointsProvider> | ||
<EnterpriseSearchRelevancePageTemplate | ||
pageChrome={[ | ||
i18n.translate('xpack.enterpriseSearch.relevance.inferenceEndpoints.breadcrumb', { | ||
defaultMessage: 'Inference Endpoints', | ||
}), | ||
]} | ||
pageViewTelemetry="InferenceEndpoints" | ||
restrictWidth={false} | ||
customPageSections | ||
bottomBorder="extended" | ||
docLink="inference_endpoints" | ||
> | ||
<searchInferenceEndpoints.InferenceEndpoints /> | ||
</EnterpriseSearchRelevancePageTemplate> | ||
</searchInferenceEndpoints.InferenceEdnpointsProvider> | ||
); | ||
}; |
8 changes: 8 additions & 0 deletions
8
...erprise_search/public/applications/enterprise_search_relevance/components/layout/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
export { EnterpriseSearchRelevancePageTemplate } from './page_template'; |
Oops, something went wrong.