- 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.Params
Nested 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 Integer
Number of dimensions the service works with.The data type for the embeddings this service works with.Returns aToXContentObject
that only writes the exposed fields.default SimilarityMeasure
Similarity used in the service.Methods inherited from interface org.elasticsearch.xcontent.ToXContent
toXContent
Methods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
Methods inherited from interface org.elasticsearch.common.io.stream.VersionedNamedWriteable
getMinimalSupportedVersion, getWriteableName
-
Method Details
-
getFilteredXContentObject
ToXContentObject getFilteredXContentObject()Returns aToXContentObject
that 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
-