Class RerankConfig.Builder
java.lang.Object
io.agentscope.core.rag.integration.dify.RerankConfig.Builder
- Enclosing class:
- RerankConfig
Builder for RerankConfig.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a new RerankConfig instance.Sets the rerank model name.providerName(String providerName) Sets the rerank provider name.
-
Method Details
-
providerName
Sets the rerank provider name.This specifies which reranking service provider to use.
Common providers:
- cohere
- jina
- local (for self-hosted models)
- Parameters:
providerName- the provider name- Returns:
- this builder for method chaining
-
modelName
Sets the rerank model name.This is the name of the reranking model provided by the specified provider. If not set, the provider's default reranking model will be used.
Common models:
- rerank-english-v2.0 (Cohere)
- rerank-multilingual-v2.0 (Cohere)
- jina-reranker-v1-base-en (Jina)
- bge-reranker-base (local)
- bge-reranker-large (local)
- Parameters:
modelName- the model name- Returns:
- this builder for method chaining
-
build
Builds a new RerankConfig instance.- Returns:
- a new RerankConfig instance
-