Class EmbeddingUtils

java.lang.Object
org.springframework.ai.model.EmbeddingUtils

public final class EmbeddingUtils extends Object
Utility methods for embedding related operations.
Since:
1.0.0
Author:
Christian Tzolov
  • Method Details

    • doubleToFloat

      public static List<Float> doubleToFloat(List<Double> doubles)
    • toPrimitive

      public static float[] toPrimitive(List<Float> floats)
    • toPrimitive

      public static float[] toPrimitive(Float[] array)
    • toFloatArray

      public static Float[] toFloatArray(float[] array)
    • toList

      public static List<Float> toList(float[] floats)