Class Embedding<VectorType>

java.lang.Object
dev.embeddings4j.Embedding<VectorType>
All Implemented Interfaces:
com.github.jelmerk.knn.Item<Long,List<VectorType>>, Serializable

public class Embedding<VectorType> extends Object implements com.github.jelmerk.knn.Item<Long,List<VectorType>>
See Also:
  • Constructor Details

  • Method Details

    • id

      public Long id()
      Specified by:
      id in interface com.github.jelmerk.knn.Item<Long,List<VectorType>>
    • contents

      public String contents()
    • vector

      public List<VectorType> vector()
      Specified by:
      vector in interface com.github.jelmerk.knn.Item<Long,List<VectorType>>
    • dimensions

      public int dimensions()
      Specified by:
      dimensions in interface com.github.jelmerk.knn.Item<Long,List<VectorType>>
    • of

      public static <VectorType> Embedding<VectorType> of(Long id, List<VectorType> vector)
    • of

      public static <VectorType> Embedding<VectorType> of(String contents, List<VectorType> vector)
    • of

      public static <VectorType> Embedding<VectorType> of(long id, String contents, List<VectorType> vector)