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.Query
context
(io.qdrant.client.grpc.Points.ContextInput input) Creates aPoints.Query
for context search.static io.qdrant.client.grpc.Points.Query
discover
(io.qdrant.client.grpc.Points.DiscoverInput input) Creates aPoints.Query
for discovery.static io.qdrant.client.grpc.Points.Query
fusion
(io.qdrant.client.grpc.Points.Fusion fusion) Creates aPoints.Query
for pre-fetch results fusion.static io.qdrant.client.grpc.Points.Query
nearest
(float... values) Creates aPoints.Query
from a list of floatsstatic io.qdrant.client.grpc.Points.Query
nearest
(float[][] vectors) Creates aPoints.Query
from a nested array of floats representing a multi vectorstatic io.qdrant.client.grpc.Points.Query
nearest
(long id) Creates aPoints.Query
from along
static io.qdrant.client.grpc.Points.Query
nearest
(io.qdrant.client.grpc.Points.PointId id) Creates aPoints.Query
from aPoints.PointId
static io.qdrant.client.grpc.Points.Query
nearest
(io.qdrant.client.grpc.Points.VectorInput input) Creates aPoints.Query
for nearest search.static io.qdrant.client.grpc.Points.Query
Creates aPoints.Query
from a list of floatsstatic io.qdrant.client.grpc.Points.Query
Creates aPoints.Query
from a list of floats and integers as indicesstatic io.qdrant.client.grpc.Points.Query
Creates aPoints.Query
from aUUID
static io.qdrant.client.grpc.Points.Query
nearestMultiVector
(List<List<Float>> vectors) Creates aPoints.Query
from a nested list of floats representing a multi vectorstatic io.qdrant.client.grpc.Points.Query
orderBy
(io.qdrant.client.grpc.Points.OrderBy orderBy) Creates aPoints.Query
to order points by a payload field.static io.qdrant.client.grpc.Points.Query
Creates aPoints.Query
to order points by a payload field.static io.qdrant.client.grpc.Points.Query
recommend
(io.qdrant.client.grpc.Points.RecommendInput input) Creates aPoints.Query
for recommendation.static io.qdrant.client.grpc.Points.Query
sample
(io.qdrant.client.grpc.Points.Sample sample) Creates aPoints.Query
for sampling.
-
Method Details
-
recommend
public static io.qdrant.client.grpc.Points.Query recommend(io.qdrant.client.grpc.Points.RecommendInput input) Creates aPoints.Query
for 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.Query
for 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.Query
for 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.Query
for pre-fetch results fusion.- Parameters:
fusion
- An instance ofPoints.Fusion
- Returns:
- a new instance of
Points.Query
-
orderBy
Creates aPoints.Query
to 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.Query
to 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.Query
for nearest search.- Parameters:
input
- An instance ofPoints.VectorInput
- Returns:
- a new instance of
Points.Query
-
nearest
Creates aPoints.Query
from 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.Query
from a list of floats- Parameters:
values
- A list of values- Returns:
- A new instance of
Points.Query
-
nearest
Creates aPoints.Query
from 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.Query
from 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.Query
from along
- Parameters:
id
- The point id- Returns:
- a new instance of
Points.Query
-
nearest
Creates aPoints.Query
from 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.Query
from aPoints.PointId
- Parameters:
id
- The pint id- Returns:
- a new instance of
Points.Query
-
nearestMultiVector
Creates aPoints.Query
from a nested list of floats representing a multi vector- Parameters:
vectors
- The nested list of floats.- Returns:
- A new instance of
Points.Query
-
sample
public static io.qdrant.client.grpc.Points.Query sample(io.qdrant.client.grpc.Points.Sample sample) Creates aPoints.Query
for sampling.- Parameters:
sample
- An instance ofPoints.Sample
- Returns:
- A new instance of
Points.Query
-