elasticsearch
elasticsearch copied to clipboard
Extract common ServiceSettings methods
This is previous work for https://github.com/elastic/elasticsearch/pull/105515.
Refactor out some common methods in ServiceSettings
class so they are available for serialization as part of inference results in semantic_text
.
When serializing dense vectors, inference results for semantic_text must include similarity and dimensions so the underlying field mapping can be properly created.
A new class is created to just serialize the information needed from ServiceSettings
. This means moving SimilarityMeasure to server code so it's available there as well.
Pinging @elastic/ml-core (Team:ML)