Class RerankConfig

java.lang.Object
io.agentscope.core.rag.integration.bailian.RerankConfig

public class RerankConfig extends Object
Rerank configuration for Bailian knowledge base retrieval.

Reranking can improve the relevance of retrieved documents by re-scoring them using a specialized ranking model.

  • Method Details

    • getModelName

      public String getModelName()
      Gets the rerank model name.
      Returns:
      the model name
    • getRerankMinScore

      public Float getRerankMinScore()
      Gets the minimum score threshold for reranking.
      Returns:
      the minimum score (0.01-1.00)
    • getRerankTopN

      public Integer getRerankTopN()
      Gets the top N results after reranking.
      Returns:
      the top N value (1-20)
    • builder

      public static RerankConfig.Builder builder()
      Creates a new builder.
      Returns:
      a new Builder instance