Class SimpleVectorStore.EmbeddingMath

java.lang.Object
org.springframework.ai.vectorstore.SimpleVectorStore.EmbeddingMath
Enclosing class:
SimpleVectorStore

public class SimpleVectorStore.EmbeddingMath extends Object
  • Method Details

    • cosineSimilarity

      public static double cosineSimilarity(List<Double> vectorX, List<Double> vectorY)
    • dotProduct

      public static double dotProduct(List<Double> vectorX, List<Double> vectorY)
    • norm

      public static double norm(List<Double> vector)