File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
src/main/java/io/qdrant/client Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 1616import io .qdrant .client .grpc .Points .PointId ;
1717import io .qdrant .client .grpc .Points .Query ;
1818import io .qdrant .client .grpc .Points .RecommendInput ;
19+ import io .qdrant .client .grpc .Points .Rrf ;
1920import io .qdrant .client .grpc .Points .Sample ;
2021import io .qdrant .client .grpc .Points .VectorInput ;
2122import java .util .List ;
@@ -65,6 +66,16 @@ public static Query fusion(Fusion fusion) {
6566 return Query .newBuilder ().setFusion (fusion ).build ();
6667 }
6768
69+ /**
70+ * Creates a {@link Query} for reciprocal rank fusion (RRF).
71+ *
72+ * @param rrf An instance of {@link Rrf}
73+ * @return a new instance of {@link Query}
74+ */
75+ public static Query rrf (Rrf rrf ) {
76+ return Query .newBuilder ().setRrf (rrf ).build ();
77+ }
78+
6879 /**
6980 * Creates a {@link Query} to order points by a payload field.
7081 *
You can’t perform that action at this time.
0 commit comments