- All Superinterfaces:
NamedWriteable,ToXContent,ToXContentObject,VersionedNamedWriteable,Writeable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Method Summary
Modifier and TypeMethodDescriptiondefault IntegerNumber of dimensions the service works with.The data type for the embeddings this service works with.Returns aToXContentObjectthat only writes the exposed fields.default SimilarityMeasureSimilarity used in the service.Methods inherited from interface org.elasticsearch.xcontent.ToXContent
toXContentMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragmentMethods inherited from interface org.elasticsearch.common.io.stream.VersionedNamedWriteable
getMinimalSupportedVersion, getWriteableName
-
Method Details
-
getFilteredXContentObject
ToXContentObject getFilteredXContentObject()Returns aToXContentObjectthat only writes the exposed fields. Any hidden fields are not written. -
similarity
Similarity used in the service. Will be null if not applicable.- Returns:
- similarity
-
dimensions
Number of dimensions the service works with. Will be null if not applicable.- Returns:
- number of dimensions
-
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
-