Package org.springframework.ai.model
Class EmbeddingUtils
java.lang.Object
org.springframework.ai.model.EmbeddingUtils
Utility methods for embedding related operations.
- Since:
- 1.0.0
- Author:
- Christian Tzolov
-
Method Summary
Modifier and TypeMethodDescriptiondoubleToFloat
(List<Double> doubles) static Float[]
toFloatArray
(float[] array) toList
(float[] floats) static float[]
toPrimitive
(Float[] array) static float[]
toPrimitive
(List<Float> floats)
-
Method Details
-
doubleToFloat
-
toPrimitive
-
toPrimitive
-
toFloatArray
-
toList
-