Module org.elasticsearch.xcore
Class TextEmbeddingUtils
java.lang.Object
org.elasticsearch.xpack.core.inference.results.TextEmbeddingUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidvalidateInputSizeAgainstEmbeddings(int inputsSize, int embeddingSize) Throws an exception if the number of elements in the input text list is different than the results in text embedding response.
-
Method Details
-
validateInputSizeAgainstEmbeddings
public static void validateInputSizeAgainstEmbeddings(int inputsSize, int embeddingSize) Throws an exception if the number of elements in the input text list is different than the results in text embedding response.
-