Package io.qdrant.client
Class VectorInputFactory
java.lang.Object
io.qdrant.client.VectorInputFactory
Convenience methods for constructing
Points.VectorInput-
Method Summary
Modifier and TypeMethodDescriptionstatic io.qdrant.client.grpc.Points.VectorInputmultiVectorInput(float[][] vectors) Creates aPoints.VectorInputfrom a nested array of floats representing a multi vectorstatic io.qdrant.client.grpc.Points.VectorInputmultiVectorInput(List<List<Float>> vectors) Creates aPoints.VectorInputfrom a nested list of floats representing a multi vectorstatic io.qdrant.client.grpc.Points.VectorInputvectorInput(float... values) Creates aPoints.VectorInputfrom a list of floatsstatic io.qdrant.client.grpc.Points.VectorInputvectorInput(long id) Creates aPoints.VectorInputfrom alongstatic io.qdrant.client.grpc.Points.VectorInputvectorInput(io.qdrant.client.grpc.Points.Document document) Creates aPoints.VectorInputfrom aPoints.Documentstatic io.qdrant.client.grpc.Points.VectorInputvectorInput(io.qdrant.client.grpc.Points.Image image) Creates aPoints.VectorInputfrom a anPoints.Imagestatic io.qdrant.client.grpc.Points.VectorInputvectorInput(io.qdrant.client.grpc.Points.InferenceObject object) Creates aPoints.VectorInputfrom aPoints.InferenceObjectstatic io.qdrant.client.grpc.Points.VectorInputvectorInput(io.qdrant.client.grpc.Points.PointId id) Creates aPoints.VectorInputfrom aPoints.PointIdstatic io.qdrant.client.grpc.Points.VectorInputvectorInput(List<Float> values) Creates aPoints.VectorInputfrom a list of floatsstatic io.qdrant.client.grpc.Points.VectorInputvectorInput(List<Float> vector, List<Integer> indices) Creates aPoints.VectorInputfrom a list of floats and integers as indicesstatic io.qdrant.client.grpc.Points.VectorInputvectorInput(UUID id) Creates aPoints.VectorInputfrom aUUID
-
Method Details
-
vectorInput
Creates aPoints.VectorInputfrom 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 aPoints.VectorInputfrom 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 aPoints.VectorInputfrom 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
Creates aPoints.VectorInputfrom 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 aPoints.VectorInputfrom 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 aPoints.VectorInputfrom along- Parameters:
id- The point id- Returns:
- a new instance of
Points.VectorInput
-
vectorInput
Creates aPoints.VectorInputfrom aUUID- Parameters:
id- The point 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 aPoints.VectorInputfrom aPoints.PointId- Parameters:
id- The point id- Returns:
- a new instance of
Points.VectorInput
-
vectorInput
public static io.qdrant.client.grpc.Points.VectorInput vectorInput(io.qdrant.client.grpc.Points.Document document) Creates aPoints.VectorInputfrom aPoints.Document- Parameters:
document- An instance ofPoints.Document- Returns:
- a new instance of
Points.VectorInput
-
vectorInput
public static io.qdrant.client.grpc.Points.VectorInput vectorInput(io.qdrant.client.grpc.Points.Image image) Creates aPoints.VectorInputfrom a anPoints.Image- Parameters:
image- An instance ofPoints.Image- Returns:
- a new instance of
Points.VectorInput
-
vectorInput
public static io.qdrant.client.grpc.Points.VectorInput vectorInput(io.qdrant.client.grpc.Points.InferenceObject object) Creates aPoints.VectorInputfrom aPoints.InferenceObject- Parameters:
object- An instance ofPoints.InferenceObject- Returns:
- a new instance of
Points.VectorInput
-