File tree Expand file tree Collapse file tree
sdk-core/src/main/java/io/milvus/v2/service/vector/request/ranker Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4343 * You also can declare a rrf ranker by Function
4444 * CreateCollectionReq.Function rr = CreateCollectionReq.Function.builder()
4545 * .functionType(FunctionType.RERANK)
46- * .param("strategy ", "rrf")
47- * .param("params ", "{\"k\": 60} ")
46+ * .param("reranker ", "rrf")
47+ * .param("k ", "60 ")
4848 * .build();
4949 */
5050public class RRFRanker extends CreateCollectionReq .Function {
Original file line number Diff line number Diff line change 4747 * You also can declare a weighter ranker by Function
4848 * CreateCollectionReq.Function rr = CreateCollectionReq.Function.builder()
4949 * .functionType(FunctionType.RERANK)
50- * .param("strategy ", "weighted")
51- * .param("params ", "{\"weights\": [0.4, 0.6]} ")
50+ * .param("reranker ", "weighted")
51+ * .param("weights ", "[0.4, 0.6]")
5252 * .build();
5353 */
5454public class WeightedRanker extends CreateCollectionReq .Function {
You can’t perform that action at this time.
0 commit comments