From 2bc08e0e9c6bdfb510c2d5528e05c5523157f91d Mon Sep 17 00:00:00 2001 From: David Kyle Date: Wed, 13 Apr 2022 09:56:42 +0100 Subject: [PATCH 1/3] Fix serialisation of text embedding updates --- .../core/ml/inference/MlInferenceNamedXContentProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/inference/MlInferenceNamedXContentProvider.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/inference/MlInferenceNamedXContentProvider.java index bfe442ea52e73..df10c21a5d2d7 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/inference/MlInferenceNamedXContentProvider.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/inference/MlInferenceNamedXContentProvider.java @@ -603,7 +603,7 @@ public List getNamedWriteables() { new NamedWriteableRegistry.Entry( InferenceConfigUpdate.class, TextEmbeddingConfigUpdate.NAME, - TextClassificationConfigUpdate::new + TextEmbeddingConfigUpdate::new ) ); namedWriteables.add( From c38cf34eafe2ba3c41c79fe0db5778b4f3aeaa05 Mon Sep 17 00:00:00 2001 From: David Kyle Date: Wed, 13 Apr 2022 10:07:41 +0100 Subject: [PATCH 2/3] Update docs/changelog/85863.yaml --- docs/changelog/85863.yaml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 docs/changelog/85863.yaml diff --git a/docs/changelog/85863.yaml b/docs/changelog/85863.yaml new file mode 100644 index 0000000000000..828611f247ab4 --- /dev/null +++ b/docs/changelog/85863.yaml @@ -0,0 +1,5 @@ +pr: 85863 +summary: Fix serialisation of text embedding updates +area: Machine Learning +type: bug +issues: [] From bd43d0096410b1ac4c3a106cad2fb372d82e53bb Mon Sep 17 00:00:00 2001 From: David Kyle Date: Wed, 13 Apr 2022 10:15:10 +0100 Subject: [PATCH 3/3] spotless --- .../core/ml/inference/MlInferenceNamedXContentProvider.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/inference/MlInferenceNamedXContentProvider.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/inference/MlInferenceNamedXContentProvider.java index df10c21a5d2d7..87dfdaea41191 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/inference/MlInferenceNamedXContentProvider.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/inference/MlInferenceNamedXContentProvider.java @@ -600,11 +600,7 @@ public List getNamedWriteables() { ) ); namedWriteables.add( - new NamedWriteableRegistry.Entry( - InferenceConfigUpdate.class, - TextEmbeddingConfigUpdate.NAME, - TextEmbeddingConfigUpdate::new - ) + new NamedWriteableRegistry.Entry(InferenceConfigUpdate.class, TextEmbeddingConfigUpdate.NAME, TextEmbeddingConfigUpdate::new) ); namedWriteables.add( new NamedWriteableRegistry.Entry(