Class RerankConfig
java.lang.Object
io.agentscope.core.rag.integration.bailian.RerankConfig
Rerank configuration for Bailian knowledge base retrieval.
Reranking can improve the relevance of retrieved documents by re-scoring them using a specialized ranking model.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic RerankConfig.Builderbuilder()Creates a new builder.Gets the rerank model name.Gets the minimum score threshold for reranking.Gets the top N results after reranking.
-
Method Details
-
getModelName
Gets the rerank model name.- Returns:
- the model name
-
getRerankMinScore
Gets the minimum score threshold for reranking.- Returns:
- the minimum score (0.01-1.00)
-
getRerankTopN
Gets the top N results after reranking.- Returns:
- the top N value (1-20)
-
builder
Creates a new builder.- Returns:
- a new Builder instance
-