Class DecayRanker


  • public class DecayRanker
    extends CreateCollectionReq.Function
    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

    Example: DecayRanker decay = DecayRanker.builder() .name("time_decay") .description("time decay") .inputFieldNames(Collections.singletonList("timestamp")) .function("gauss") .origin(100) .scale(50) .offset(24) .decay(0.5) .build()

    You also can declare a decay ranker by Function: CreateCollectionReq.Function decay = CreateCollectionReq.Function.builder() .functionType(FunctionType.RERANK) .name("time_decay") .description("time decay") .inputFieldNames(Collections.singletonList("timestamp")) .param("reranker", "decay") .param("function", "gauss") .param("origin", "100") .param("scale", "50") .param("offset", "24") .param("decay", "0.5") .build();