Skip to content

Commit 387c89f

Browse files
authored
Merge pull request #3366 from liyun95/v2.6.x
update rrf ranker java code
2 parents 98182ef + 8594e69 commit 387c89f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

site/en/userGuide/embeddings-reranking/reranking/rrf-ranker.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,12 @@ ranker = Function(
251251
import io.milvus.common.clientenum.FunctionType;
252252
import io.milvus.v2.service.collection.request.CreateCollectionReq;
253253

254-
CreateCollectionReq.Function rr = CreateCollectionReq.Function.builder()
255-
.functionType(FunctionType.RERANK)
256-
.param("strategy", "rrf")
257-
.param("params", "{\"k\": 100}")
258-
.build();
254+
CreateCollectionReq.Function rerank = CreateCollectionReq.Function.builder()
255+
.name("rrf")
256+
.functionType(FunctionType.RERANK)
257+
.param("reranker", "rrf")
258+
.param("k", "100")
259+
.build();
259260
```
260261

261262
```javascript

0 commit comments

Comments
 (0)