java.lang.Object
org.elasticsearch.xpack.core.inference.results.TextEmbeddingUtils

public class TextEmbeddingUtils extends Object
  • Method Details

    • validateInputSizeAgainstEmbeddings

      public static void validateInputSizeAgainstEmbeddings(List<String> inputs, int embeddingSize)
      Throws an exception if the number of elements in the input text list is different than the results in text embedding response.