Class DecayRanker
java.lang.Object
io.milvus.v2.service.collection.request.CreateCollectionReq.Function
io.milvus.v2.service.vector.request.ranker.DecayRanker
The Decay reranking strategy, which by adjusting search rankings based on numeric field values.
Read the doc for more info: https://milvus.io/docs/decay-ranker-overview.md
You also can declare a decay ranker by Function
CreateCollectionReq.Function rr = CreateCollectionReq.Function.builder()
.functionType(FunctionType.RERANK)
.name("time_decay")
.description("time decay")
.inputFieldNames(Collections.singletonList("timestamp"))
.param("reranker", "decay")
.param("function", "gauss")
.param("origin", "1000")
.param("scale", "10000")
.param("offset", "24")
.param("decay", "0.5")
.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
-
DecayRanker
public DecayRanker()
-
-
Method Details
-
getFunctionType
-
getParams
-