Package io.qdrant.client
Class QueryFactory
java.lang.Object
io.qdrant.client.QueryFactory
Convenience methods for constructing
Points.Query-
Method Summary
Modifier and TypeMethodDescriptionstatic io.qdrant.client.grpc.Points.Querycontext(io.qdrant.client.grpc.Points.ContextInput input) Creates aPoints.Queryfor context search.static io.qdrant.client.grpc.Points.Querydiscover(io.qdrant.client.grpc.Points.DiscoverInput input) Creates aPoints.Queryfor discovery.static io.qdrant.client.grpc.Points.Queryfusion(io.qdrant.client.grpc.Points.Fusion fusion) Creates aPoints.Queryfor pre-fetch results fusion.static io.qdrant.client.grpc.Points.Querynearest(float... values) Creates aPoints.Queryfrom a list of floatsstatic io.qdrant.client.grpc.Points.Querynearest(float[][] vectors) Creates aPoints.Queryfrom a nested array of floats representing a multi vectorstatic io.qdrant.client.grpc.Points.Querynearest(long id) Creates aPoints.Queryfrom alongstatic io.qdrant.client.grpc.Points.Querynearest(io.qdrant.client.grpc.Points.PointId id) Creates aPoints.Queryfrom aPoints.PointIdstatic io.qdrant.client.grpc.Points.Querynearest(io.qdrant.client.grpc.Points.VectorInput input) Creates aPoints.Queryfor nearest search.static io.qdrant.client.grpc.Points.QueryCreates aPoints.Queryfrom a list of floatsstatic io.qdrant.client.grpc.Points.QueryCreates aPoints.Queryfrom a list of floats and integers as indicesstatic io.qdrant.client.grpc.Points.QueryCreates aPoints.Queryfrom aUUIDstatic io.qdrant.client.grpc.Points.QuerynearestMultiVector(List<List<Float>> vectors) Creates aPoints.Queryfrom a nested list of floats representing a multi vectorstatic io.qdrant.client.grpc.Points.QueryorderBy(io.qdrant.client.grpc.Points.OrderBy orderBy) Creates aPoints.Queryto order points by a payload field.static io.qdrant.client.grpc.Points.QueryCreates aPoints.Queryto order points by a payload field.static io.qdrant.client.grpc.Points.Queryrecommend(io.qdrant.client.grpc.Points.RecommendInput input) Creates aPoints.Queryfor recommendation.
-
Method Details
-
recommend
public static io.qdrant.client.grpc.Points.Query recommend(io.qdrant.client.grpc.Points.RecommendInput input) Creates aPoints.Queryfor recommendation.- Parameters:
input- An instance ofPoints.RecommendInput- Returns:
- a new instance of
Points.Query
-
discover
public static io.qdrant.client.grpc.Points.Query discover(io.qdrant.client.grpc.Points.DiscoverInput input) Creates aPoints.Queryfor discovery.- Parameters:
input- An instance ofPoints.DiscoverInput- Returns:
- a new instance of
Points.Query
-
context
public static io.qdrant.client.grpc.Points.Query context(io.qdrant.client.grpc.Points.ContextInput input) Creates aPoints.Queryfor context search.- Parameters:
input- An instance ofPoints.ContextInput- Returns:
- a new instance of
Points.Query
-
fusion
public static io.qdrant.client.grpc.Points.Query fusion(io.qdrant.client.grpc.Points.Fusion fusion) Creates aPoints.Queryfor pre-fetch results fusion.- Parameters:
fusion- An instance ofPoints.Fusion- Returns:
- a new instance of
Points.Query
-
orderBy
Creates aPoints.Queryto order points by a payload field.- Parameters:
key- Name of the payload field to order by- Returns:
- a new instance of
Points.Query
-
orderBy
public static io.qdrant.client.grpc.Points.Query orderBy(io.qdrant.client.grpc.Points.OrderBy orderBy) Creates aPoints.Queryto order points by a payload field.- Parameters:
orderBy- An instance ofPoints.OrderBy- Returns:
- a new instance of
Points.Query
-
nearest
public static io.qdrant.client.grpc.Points.Query nearest(io.qdrant.client.grpc.Points.VectorInput input) Creates aPoints.Queryfor nearest search.- Parameters:
input- An instance ofPoints.VectorInput- Returns:
- a new instance of
Points.Query
-
nearest
Creates aPoints.Queryfrom a list of floats- Parameters:
values- A map of vector names to values- Returns:
- A new instance of
Points.Query
-
nearest
public static io.qdrant.client.grpc.Points.Query nearest(float... values) Creates aPoints.Queryfrom a list of floats- Parameters:
values- A list of values- Returns:
- A new instance of
Points.Query
-
nearest
Creates aPoints.Queryfrom a list of floats and integers as indices- Parameters:
values- The list of floats representing the vector.indices- The list of integers representing the indices.- Returns:
- A new instance of
Points.Query
-
nearest
public static io.qdrant.client.grpc.Points.Query nearest(float[][] vectors) Creates aPoints.Queryfrom a nested array of floats representing a multi vector- Parameters:
vectors- The nested array of floats.- Returns:
- A new instance of
Points.Query
-
nearest
public static io.qdrant.client.grpc.Points.Query nearest(long id) Creates aPoints.Queryfrom along- Parameters:
id- The point id- Returns:
- a new instance of
Points.Query
-
nearest
Creates aPoints.Queryfrom aUUID- Parameters:
id- The pint id- Returns:
- a new instance of
Points.Query
-
nearest
public static io.qdrant.client.grpc.Points.Query nearest(io.qdrant.client.grpc.Points.PointId id) Creates aPoints.Queryfrom aPoints.PointId- Parameters:
id- The pint id- Returns:
- a new instance of
Points.Query
-
nearestMultiVector
Creates aPoints.Queryfrom a nested list of floats representing a multi vector- Parameters:
vectors- The nested list of floats.- Returns:
- A new instance of
Points.Query
-