Skip to content

Commit

Permalink
[ML] Fix serialisation of text embedding updates (elastic#85863)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkyle committed Apr 13, 2022
1 parent 6ca9a15 commit b4f0057
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 5 additions & 0 deletions docs/changelog/85863.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 85863
summary: Fix serialisation of text embedding updates
area: Machine Learning
type: bug
issues: []
Original file line number Diff line number Diff line change
Expand Up @@ -600,11 +600,7 @@ public List<NamedWriteableRegistry.Entry> getNamedWriteables() {
)
);
namedWriteables.add(
new NamedWriteableRegistry.Entry(
InferenceConfigUpdate.class,
TextEmbeddingConfigUpdate.NAME,
TextClassificationConfigUpdate::new
)
new NamedWriteableRegistry.Entry(InferenceConfigUpdate.class, TextEmbeddingConfigUpdate.NAME, TextEmbeddingConfigUpdate::new)
);
namedWriteables.add(
new NamedWriteableRegistry.Entry(
Expand Down

0 comments on commit b4f0057

Please sign in to comment.