Class VectorInputFactory

java.lang.Object
io.qdrant.client.VectorInputFactory

public final class VectorInputFactory extends Object
Convenience methods for constructing Points.VectorInput
  • Method Summary

    Modifier and Type
    Method
    Description
    static io.qdrant.client.grpc.Points.VectorInput
    multiVectorInput(float[][] vectors)
    Creates a Points.VectorInput from a nested array of floats representing a multi vector
    static io.qdrant.client.grpc.Points.VectorInput
    Creates a Points.VectorInput from a nested list of floats representing a multi vector
    static io.qdrant.client.grpc.Points.VectorInput
    vectorInput(float... values)
    Creates a Points.VectorInput from a list of floats
    static io.qdrant.client.grpc.Points.VectorInput
    vectorInput(long id)
    Creates a Points.VectorInput from a long
    static io.qdrant.client.grpc.Points.VectorInput
    vectorInput(io.qdrant.client.grpc.Points.PointId id)
    Creates a Points.VectorInput from a Points.PointId
    static io.qdrant.client.grpc.Points.VectorInput
    Creates a Points.VectorInput from a list of floats
    static io.qdrant.client.grpc.Points.VectorInput
    vectorInput(List<Float> vector, List<Integer> indices)
    Creates a Points.VectorInput from a list of floats and integers as indices
    static io.qdrant.client.grpc.Points.VectorInput
    Creates a Points.VectorInput from a UUID

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • vectorInput

      public static io.qdrant.client.grpc.Points.VectorInput vectorInput(List<Float> values)
      Creates a Points.VectorInput from a list of floats
      Parameters:
      values - A map of vector names to values
      Returns:
      A new instance of Points.VectorInput
    • vectorInput

      public static io.qdrant.client.grpc.Points.VectorInput vectorInput(float... values)
      Creates a Points.VectorInput from a list of floats
      Parameters:
      values - A list of values
      Returns:
      A new instance of Points.VectorInput
    • vectorInput

      public static io.qdrant.client.grpc.Points.VectorInput vectorInput(List<Float> vector, List<Integer> indices)
      Creates a Points.VectorInput from a list of floats and integers as indices
      Parameters:
      vector - The list of floats representing the vector.
      indices - The list of integers representing the indices.
      Returns:
      A new instance of Points.VectorInput
    • multiVectorInput

      public static io.qdrant.client.grpc.Points.VectorInput multiVectorInput(List<List<Float>> vectors)
      Creates a Points.VectorInput from a nested list of floats representing a multi vector
      Parameters:
      vectors - The nested list of floats.
      Returns:
      A new instance of Points.VectorInput
    • multiVectorInput

      public static io.qdrant.client.grpc.Points.VectorInput multiVectorInput(float[][] vectors)
      Creates a Points.VectorInput from a nested array of floats representing a multi vector
      Parameters:
      vectors - The nested array of floats.
      Returns:
      A new instance of Points.VectorInput
    • vectorInput

      public static io.qdrant.client.grpc.Points.VectorInput vectorInput(long id)
      Creates a Points.VectorInput from a long
      Parameters:
      id - The point id
      Returns:
      a new instance of Points.VectorInput
    • vectorInput

      public static io.qdrant.client.grpc.Points.VectorInput vectorInput(UUID id)
      Creates a Points.VectorInput from a UUID
      Parameters:
      id - The pint id
      Returns:
      a new instance of Points.VectorInput
    • vectorInput

      public static io.qdrant.client.grpc.Points.VectorInput vectorInput(io.qdrant.client.grpc.Points.PointId id)
      Creates a Points.VectorInput from a Points.PointId
      Parameters:
      id - The pint id
      Returns:
      a new instance of Points.VectorInput