Module org.elasticsearch.xcore
Interface EmbeddingResults<E extends EmbeddingResults.Embedding<E>>
- All Superinterfaces:
ChunkedToXContent,InferenceServiceResults,NamedWriteable,Writeable
- All Known Subinterfaces:
TextEmbeddingResults<E>
- All Known Implementing Classes:
SparseEmbeddingResults,TextEmbeddingBitResults,TextEmbeddingByteResults,TextEmbeddingFloatResults
public interface EmbeddingResults<E extends EmbeddingResults.Embedding<E>>
extends InferenceServiceResults
The results of a call to the inference service that contains embeddings (sparse or dense).
A call to the inference service may contain multiple input texts, so this results may
contain multiple results.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordA resulting embedding together with the offset into the input text.static interfaceA resulting embedding for one of the input texts to the inference service.Nested classes/interfaces inherited from interface org.elasticsearch.inference.InferenceServiceResults
InferenceServiceResults.ResultNested 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.common.xcontent.ChunkedToXContent
EMPTY -
Method Summary
Modifier and TypeMethodDescriptionThe resulting list of embeddings for the input texts to the inference service.Methods inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
isFragment, toXContentChunked, toXContentChunkedV8Methods inherited from interface org.elasticsearch.inference.InferenceServiceResults
asMap, getWriteableName, isStreaming, publisher, toXContentChunked, transformToCoordinationFormat, writeTo
-
Method Details
-
embeddings
The resulting list of embeddings for the input texts to the inference service.
-