kibana/x-pack/plugins/ml/server/models
Dima Arnautov 2bce7bbcbe
[ML] Shared service for elastic curated models (#167000)
## Summary

Adds a shared service for elastic curated models. The first use case is
to provide a default/recommended ELSER version based on the hardware of
the current cluster.

#### Why?
In 8.11 we'll provide a platform-specific version of the ELSER v2
alongside the portable one. At the moment several solutions refer to
ELSER for download/inference purposes with a `.elser_model_1` constant.
Starting 8.11 the model ID will vary, so using the `ElastcModels`
service allows retrieving the recommended version of ELSER for the
current cluster without any changes by solution teams in future
releases. It is still possible to request an older version of the model
if necessary.

#### Implementation 
- Adds a new Kibana API endpoint `/trained_models/model_downloads` that
provides a list of model definitions, with the `default` and
`recommended` flags.
- Adds a new Kibana API endpoint `/trained_models/elser_config` that
provides an ELSER configuration based on the cluster architecture.
- `getELSER` method is exposed from the plugin `setup` server-side as
part of our shared services and plugin `start` client-side.

### Checklist

- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [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
2023-09-25 09:15:35 -07:00
..
annotation_service [ML] Package @kbn/ml-anomaly-utils (#155697) 2023-05-03 08:46:27 +02:00
bucket_span_estimator [ML] Package @kbn/ml-data-grid (#155530) 2023-06-06 11:20:37 +02:00
calculate_model_memory_limit [ML] Package @kbn/ml-data-grid (#155530) 2023-06-06 11:20:37 +02:00
calendar [ML] Increasing calendar events request limit (#158726) 2023-06-01 11:24:59 +01:00
data_frame_analytics [ML] Serverless compatibility fixes (#163724) 2023-09-13 12:07:55 -07:00
data_recognizer [ML] Fix anomaly detection module manifest queries for kibana sample data sets (#164332) 2023-08-22 14:39:58 +01:00
data_visualizer [ML] Package @kbn/ml-data-grid (#155530) 2023-06-06 11:20:37 +02:00
fields_service [ML] Package @kbn/ml-data-grid (#155530) 2023-06-06 11:20:37 +02:00
filter [packages] prevent and remove basename collisions for js/ts code (#148835) 2023-01-12 12:29:30 -07:00
job_audit_messages [ML] Wizard validation improvements (#132615) 2022-05-24 18:07:39 +01:00
job_service [ML] Creating category validation package (#161261) 2023-07-19 12:34:29 +01:00
job_validation [ML] Package @kbn/ml-data-grid (#155530) 2023-06-06 11:20:37 +02:00
json_schema_service [ML] Improve job and datafeed config editors in the Advanced job wizard (#146968) 2023-03-10 17:04:42 +01:00
model_management [ML] Shared service for elastic curated models (#167000) 2023-09-25 09:15:35 -07:00
notifications_service [ML] Fixing notifications filter for NLP messages (#162024) 2023-07-17 11:42:34 +01:00
results_service [ML] Anomaly detection: fixes time format used in query for datafeed chart (#160325) 2023-06-28 08:32:08 -06:00