-
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.
Use default elser deployment for product documentation
- Loading branch information
1 parent
d6cb398
commit ce6157b
Showing
13 changed files
with
39 additions
and
245 deletions.
There are no files selected for viewing
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
58 changes: 0 additions & 58 deletions
58
...red/ai_infra/product_doc_base/server/services/inference_endpoint/endpoint_manager.test.ts
This file was deleted.
Oops, something went wrong.
41 changes: 0 additions & 41 deletions
41
...s/shared/ai_infra/product_doc_base/server/services/inference_endpoint/endpoint_manager.ts
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
...form/plugins/shared/ai_infra/product_doc_base/server/services/inference_endpoint/index.ts
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
...ugins/shared/ai_infra/product_doc_base/server/services/inference_endpoint/service.mock.ts
This file was deleted.
Oops, something went wrong.
34 changes: 0 additions & 34 deletions
34
...fra/product_doc_base/server/services/inference_endpoint/utils/get_model_install_status.ts
This file was deleted.
Oops, something went wrong.
35 changes: 0 additions & 35 deletions
35
...hared/ai_infra/product_doc_base/server/services/inference_endpoint/utils/install_elser.ts
This file was deleted.
Oops, something went wrong.
39 changes: 0 additions & 39 deletions
39
...ra/product_doc_base/server/services/inference_endpoint/utils/wait_until_model_deployed.ts
This file was deleted.
Oops, something went wrong.
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
19 changes: 19 additions & 0 deletions
19
...product_doc_base/server/services/package_installer/utils/ensure_default_elser_deployed.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,19 @@ | ||
/* | ||
* 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 type { ElasticsearchClient } from '@kbn/core/server'; | ||
import { defaultInferenceEndpoints } from '@kbn/inference-common'; | ||
|
||
export const ensureDefaultElserDeployed = async ({ client }: { client: ElasticsearchClient }) => { | ||
await client.inference.inference( | ||
{ | ||
inference_id: defaultInferenceEndpoints.ELSER, | ||
input: 'I just want to call the API to force the model to download and allocate', | ||
}, | ||
{ requestTimeout: 10 * 60 * 1000 } | ||
); | ||
}; |
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