Interface ServiceSettings

All Superinterfaces:
NamedWriteable, ToXContent, ToXContentObject, VersionedNamedWriteable, Writeable

public interface ServiceSettings extends ToXContentObject, VersionedNamedWriteable
  • Method Details

    • getFilteredXContentObject

      ToXContentObject getFilteredXContentObject()
      Returns a ToXContentObject that only writes the exposed fields. Any hidden fields are not written.
    • similarity

      default SimilarityMeasure similarity()
      Similarity used in the service. Will be null if not applicable.
      Returns:
      similarity
    • dimensions

      default Integer dimensions()
      Number of dimensions the service works with. Will be null if not applicable.
      Returns:
      number of dimensions
    • elementType

      default DenseVectorFieldMapper.ElementType elementType()
      The data type for the embeddings this service works with. Defaults to null, Text Embedding models should return a non-null value
      Returns:
      the element type