Class EmbeddingUtils

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

public class EmbeddingUtils extends Object
Since:
1.0.0
Author:
Christian Tzolov
  • Constructor Details

    • EmbeddingUtils

      public EmbeddingUtils()
  • 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)