Class SparseEmbedding

java.lang.Object
dev.langchain4j.store.embedding.milvus.v2.SparseEmbedding

public class SparseEmbedding extends Object
  • Constructor Details

    • SparseEmbedding

      public SparseEmbedding(long[] indices, float[] values)
  • Method Details

    • getIndices

      public long[] getIndices()
    • getValues

      public float[] getValues()
    • vectorAsSortedMap

      public SortedMap<Long,Float> vectorAsSortedMap()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object