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.
  • Method Details

    • embeddings

      List<E> embeddings()
      The resulting list of embeddings for the input texts to the inference service.