Interface SearchMethods
- All Superinterfaces:
ClientSettings,io.metaloom.qdrant.client.CommonSettings
- All Known Subinterfaces:
QDrantGRPCClient
- All Known Implementing Classes:
AbstractQDrantGRPCClient,QDrantGRPCClientImpl
-
Method Summary
Modifier and TypeMethodDescriptionrecommendBatchPoints(String collectionName, List<? extends Points.RecommendPoints> searches) Look for the points which are closer to stored positive examples and at the same time further to negative examples.recommendPoints(String collectionName, List<Points.PointId> positives, int limit) Look for the points which are closer to stored positive examples and at the same time further to negative examples.recommendPoints(String collectionName, List<Points.PointId> positives, int limit, String using) Look for the points which are closer to stored positive examples.recommendPoints(String collectionName, List<Points.PointId> positives, List<Points.PointId> negatives, Points.Filter filter, Points.SearchParams params, int limit, Integer offset, Points.WithPayloadSelector withPayload, Points.WithVectorsSelector withVector, Float scoreThreshold, String using, Points.LookupLocation lookupFrom) Look for the points which are closer to stored positive examples and at the same time further to negative examples.searchBatch(String collectionName, List<? extends Points.SearchPoints> searches) Retrieve by batch the closest points based on vector similarity and given filtering conditions.default GrpcClientRequest<Points.SearchResponse>searchPoints(String collectionName, float[] vector, long limit, Float scoreThreshold) Retrieve closest points based on vector similarity.default GrpcClientRequest<Points.SearchResponse>searchPoints(String collectionName, float[] vector, Points.Filter filter, Points.SearchParams params, long limit, Long offset, Points.WithPayloadSelector withPayloadSelector, Points.WithVectorsSelector withVectorsSelector, Float scoreThreshold) Retrieve closest points based on vector similarity and given filtering conditions.Methods inherited from interface io.metaloom.qdrant.client.ClientSettings
channel, requestMethods inherited from interface io.metaloom.qdrant.client.CommonSettings
getConnectTimeout, getHostname, getPort, getReadTimeout, getWriteTimeout
-
Method Details
-
searchPoints
default GrpcClientRequest<Points.SearchResponse> searchPoints(String collectionName, float[] vector, long limit, Float scoreThreshold) Retrieve closest points based on vector similarity.- Parameters:
collectionName-vector-limit-scoreThreshold-- Returns:
-
searchPoints
default GrpcClientRequest<Points.SearchResponse> searchPoints(String collectionName, float[] vector, Points.Filter filter, Points.SearchParams params, long limit, Long offset, Points.WithPayloadSelector withPayloadSelector, Points.WithVectorsSelector withVectorsSelector, Float scoreThreshold) Retrieve closest points based on vector similarity and given filtering conditions.- Parameters:
collectionName- Name of the collection to search invector- Vector datafilter- Look only for points which satisfies this conditionsparams- Additional search paramslimit- Max number of result to returnoffset- Offset of the first result to return. May be used to paginate results. Note: large offset values may cause performance issues.withPayloadSelector- Select which payload to return with the response. Default: NonewithVectorsSelector- Whether to return the point vector with the result.scoreThreshold- Define a minimal score threshold for the result. If defined, less similar results will not be returned. Score of the returned result might be higher or smaller than the threshold depending on the Distance function used. E.g. for cosine similarity only higher scores will be returned.- Returns:
-
searchBatch
default GrpcClientRequest<Points.SearchBatchResponse> searchBatch(String collectionName, List<? extends Points.SearchPoints> searches) Retrieve by batch the closest points based on vector similarity and given filtering conditions.- Parameters:
collectionName- Name of the collection to search insearches- List of search batches- Returns:
-
recommendPoints
default GrpcClientRequest<Points.RecommendResponse> recommendPoints(String collectionName, List<Points.PointId> positives, int limit) Look for the points which are closer to stored positive examples and at the same time further to negative examples.- Parameters:
collectionName- Name of the collection to search inpositives- Look for vectors closest to thoselimit- Max number of result to return- Returns:
-
recommendPoints
default GrpcClientRequest<Points.RecommendResponse> recommendPoints(String collectionName, List<Points.PointId> positives, int limit, String using) Look for the points which are closer to stored positive examples.- Parameters:
collectionName-positives-limit-using-- Returns:
-
recommendPoints
default GrpcClientRequest<Points.RecommendResponse> recommendPoints(String collectionName, List<Points.PointId> positives, List<Points.PointId> negatives, Points.Filter filter, Points.SearchParams params, int limit, Integer offset, Points.WithPayloadSelector withPayload, Points.WithVectorsSelector withVector, Float scoreThreshold, String using, Points.LookupLocation lookupFrom) Look for the points which are closer to stored positive examples and at the same time further to negative examples.- Parameters:
collectionName- Name of the collection to search inpositives- Look for vectors closest to thosenegatives- Try to avoid vectors like thisfilter- Look only for points which satisfies this conditionsparams- Additional search paramslimit- Max number of result to returnoffset- Offset of the first result to return. May be used to paginate results. Note: large offset values may cause performance issues.withPayload- Select which payload to return with the response. Default: NonewithVector- Whether to return the point vector with the result.scoreThreshold- Define a minimal score threshold for the result. If defined, less similar results will not be returned. Score of the returned result might be higher or smaller than the threshold depending on the Distance function used. E.g. for cosine similarity only higher scores will be returned.using- Define which vector to use for recommendation, if not specified - try to use default vectorlookupFrom- The location used to lookup vectors. If not specified - use current collection. Note: the other collection should have the same vector size as the current collection- Returns:
-
recommendBatchPoints
default GrpcClientRequest<Points.RecommendBatchResponse> recommendBatchPoints(String collectionName, List<? extends Points.RecommendPoints> searches) Look for the points which are closer to stored positive examples and at the same time further to negative examples.- Parameters:
collectionName- Name of the collection to search insearches- Request points based on positive and negative examples.- Returns:
-