elasticsearch icon indicating copy to clipboard operation
elasticsearch copied to clipboard

Extract common ServiceSettings methods

Open carlosdelest opened this issue 1 year ago • 1 comments

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.

carlosdelest avatar Feb 15 '24 13:02 carlosdelest

Pinging @elastic/ml-core (Team:ML)

elasticsearchmachine avatar Feb 15 '24 18:02 elasticsearchmachine