Skip to content

Commit 23e48e8

Browse files
authored
Fix typo (#1673)
Signed-off-by: yhmo <yihua.mo@zilliz.com>
1 parent 75531bf commit 23e48e8

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

sdk-core/src/main/java/io/milvus/v2/service/vector/request/ranker/RRFRanker.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
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
*/
5050
public class RRFRanker extends CreateCollectionReq.Function {

sdk-core/src/main/java/io/milvus/v2/service/vector/request/ranker/WeightedRanker.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
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
*/
5454
public class WeightedRanker extends CreateCollectionReq.Function {

0 commit comments

Comments
 (0)