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 Type
    Method
    Description
    merge(E embedding)
    Merges the existing embedding and provided embedding into a new embedding.
    toBytesRef(org.elasticsearch.xcontent.XContent xContent)
    Serializes the embedding to bytes.
  • Method Details

    • merge

      E merge(E embedding)
      Merges the existing embedding and provided embedding into a new embedding.
    • toBytesRef

      BytesReference toBytesRef(org.elasticsearch.xcontent.XContent xContent) throws IOException
      Serializes the embedding to bytes.
      Throws:
      IOException