Class RerankConfig.Builder
java.lang.Object
io.agentscope.core.rag.integration.bailian.RerankConfig.Builder
- Enclosing class:
- RerankConfig
Builder for RerankConfig.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a new RerankConfig.Sets the rerank model name.rerankMinScore(Float rerankMinScore) Sets the minimum score threshold.rerankTopN(Integer rerankTopN) Sets the top N results after reranking.
-
Method Details
-
modelName
Sets the rerank model name.Supported models:
- gte-rerank-hybrid (default)
- gte-rerank
- Parameters:
modelName- the model name- Returns:
- this builder
-
rerankMinScore
Sets the minimum score threshold.Only documents with scores above this threshold will be returned. Range: [0.01-1.00]
- Parameters:
rerankMinScore- the minimum score- Returns:
- this builder
-
rerankTopN
Sets the top N results after reranking.Range: [1-20], default: 5
- Parameters:
rerankTopN- the top N value- Returns:
- this builder
-
build
Builds a new RerankConfig.- Returns:
- a new RerankConfig instance
-