Record Class MinimalServiceSettings

java.lang.Object
java.lang.Record
org.elasticsearch.inference.MinimalServiceSettings
Record Components:
taskType - the type of task the inference model performs.
dimensions - the number of dimensions for the embeddings, applicable only for TaskType.TEXT_EMBEDDING (nullable).
similarity - the similarity measure used for embeddings, applicable only for TaskType.TEXT_EMBEDDING (nullable).
elementType - the type of elements in the embeddings, applicable only for TaskType.TEXT_EMBEDDING (nullable).
All Implemented Interfaces:
ToXContent, ToXContentObject

public record MinimalServiceSettings(TaskType taskType, Integer dimensions, SimilarityMeasure similarity, DenseVectorFieldMapper.ElementType elementType) extends Record implements ToXContentObject
Defines the base settings required to configure an inference endpoint. These settings are immutable and describe the input and output types that the endpoint will handle. They capture the essential properties of an inference model, ensuring the endpoint is correctly configured. Key properties include:
  • taskType - Specifies the type of task the model performs, such as classification or text embeddings.
  • dimensions, similarity, and elementType - These settings are applicable only when the taskType is TaskType.TEXT_EMBEDDING. They define the structure and behavior of embeddings.