Module org.elasticsearch.xcore
Interface EmbeddingResults.Embedding<E extends EmbeddingResults.Embedding<E>>
- All Known Implementing Classes:
SparseEmbeddingResults.Embedding,TextEmbeddingByteResults.Embedding,TextEmbeddingFloatResults.Embedding
- Enclosing interface:
EmbeddingResults<E extends EmbeddingResults.Embedding<E>>
public static interface EmbeddingResults.Embedding<E extends EmbeddingResults.Embedding<E>>
A resulting embedding for one of the input texts to the inference service.
-
Method Summary
Modifier and TypeMethodDescriptionMerges the existing embedding and provided embedding into a new embedding.toBytesRef(org.elasticsearch.xcontent.XContent xContent) Serializes the embedding to bytes.
-
Method Details
-
merge
Merges the existing embedding and provided embedding into a new embedding. -
toBytesRef
Serializes the embedding to bytes.- Throws:
IOException
-