Builder
public static class Builder
源码Source
io/agentscope/core/rag/integration/dify/RerankConfig.java:78–135RerankConfig的构建器。位于 io.agentscope.core.rag.integration.dify 包。核心成员包括 providerName、modelName、build。
Builder for RerankConfig.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public Builder providerName(String providerName) | 设置重排提供者名称。 Sets the rerank provider name. |
public Builder modelName(String modelName) | 设置重排模型名称。 Sets the rerank model name. |
public RerankConfig build() | 构建新的RerankConfig 实例。 Builds a new RerankConfig instance. |
方法详情Method Detail
providerName
public Builder providerName(String providerName)
设置重排提供者名称。
Sets the rerank provider name.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
providerName | String | 提供者名称。the provider name |
Builder返回当前实例,以支持链式调用。this builder for method chaining
源码Source
io/agentscope/core/rag/integration/dify/RerankConfig.java:99–102modelName
public Builder modelName(String modelName)
设置重排模型名称。
Sets the rerank model name.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
modelName | String | 模型名称。the model name |
Builder返回当前实例,以支持链式调用。this builder for method chaining
源码Source
io/agentscope/core/rag/integration/dify/RerankConfig.java:122–125build
public RerankConfig build()
构建新的RerankConfig 实例。
Builds a new RerankConfig instance.
RerankConfig一种新的RerankConfig 实例。a new RerankConfig instance
源码Source
io/agentscope/core/rag/integration/dify/RerankConfig.java:132–134