Class RRFRanker
java.lang.Object
io.milvus.v2.service.collection.request.CreateCollectionReq.Function
io.milvus.v2.service.vector.request.ranker.RRFRanker
The RRF reranking strategy, which merges results from multiple searches, favoring items that consistently appear.
Read the doc for more info: https://milvus.io/docs/rrf-ranker.md
Note: In v2.6, the Function and Rerank have been unified to support more rerank types: decay and model ranker
https://milvus.io/docs/decay-ranker-overview.md
https://milvus.io/docs/model-ranker-overview.md
So we have to inherit the BaseRanker from Function, this change will lead to uncomfortable issues with
RRFRanker/WeightedRanker in some users client code. We will mention it in release note.
* In old client code, to declare a WeightedRanker:
* RRFRanker ranker = new RRFRanker(20)
* After this change, the client code should be changed accordingly:
* RRFRanker ranker = RRFRanker.builder().k(20).build()
You also can declare a rrf ranker by Function
CreateCollectionReq.Function rr = CreateCollectionReq.Function.builder()
.functionType(FunctionType.RERANK)
.param("strategy", "rrf")
.param("params", "{\"k\": 60}")
.build();
-
Nested Class Summary
Nested classes/interfaces inherited from class io.milvus.v2.service.collection.request.CreateCollectionReq.Function
CreateCollectionReq.Function.FunctionBuilder<C extends CreateCollectionReq.Function,B extends CreateCollectionReq.Function.FunctionBuilder<C, B>> -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RRFRanker
Deprecated.
-
-
Method Details
-
getFunctionType
-
getParams
-