[ML] Add support for returning pt_tiny_elser
from the ml.trainedModelsProvider.getELSER()
helper function
#193633
Labels
needs-team
Issues missing a team label
In plumbing through the Security Assistant Knowledge Base API integration tests (#192665), I ended up having to add support for a
modelId
override to our API's when interacting with the Knowledge Base as we currently use theml.trainedModelsProvider.getELSER()
helper (which does not returnpt_tiny_elser
in test environments) to get themodelId
for setting up ELSER, ingest pipelines, retrievers, etc. The O11y Assistant folks also have an open issue (#192757) to do the same.It would be nice if the
getELSER()
helper function below could either be overridden to returnpt_tiny_elser
in our test environments, or if our test environments could be updated such that the function returnspt_tiny_elser
.kibana/x-pack/plugins/ml/server/models/model_management/models_provider.ts
Lines 542 to 552 in 68a9244
Note
Perhaps the need for this will go away or change somewhat when we switch from managing ELSER via the
trainedModels
API to using a default inference endpoint (#192461).The text was updated successfully, but these errors were encountered: