AS AgentScopeAPI 手册 / API Reference

Builder

public static class Builder
源码Source io/agentscope/core/rag/integration/bailian/RerankConfig.java:75–140

RerankConfig的构建器。位于 io.agentscope.core.rag.integration.bailian 包。核心成员包括 modelName、rerankMinScore、rerankTopN、build。

Builder for RerankConfig.

方法摘要Method Summary

方法Method说明Description
public Builder modelName(String modelName)
设置重排模型名称。
Sets the rerank model name.
public Builder rerankMinScore(Float rerankMinScore)
设置重排最小分数。
Sets the minimum score threshold.
public Builder rerankTopN(Integer rerankTopN)
设置该配置项。
Sets the top N results after reranking.
public RerankConfig build()
构建新的RerankConfig。
Builds a new RerankConfig.

方法详情Method Detail

modelName

public Builder modelName(String modelName)

设置重排模型名称。

Sets the rerank model name.

参数Parameters
名称Name类型Type说明Description
modelNameString模型名称。the model name
返回Returns Builder
返回当前实例,以支持链式调用。this builder
源码Source io/agentscope/core/rag/integration/bailian/RerankConfig.java:94–97

rerankMinScore

public Builder rerankMinScore(Float rerankMinScore)

设置重排最小分数。

Sets the minimum score threshold.

参数Parameters
名称Name类型Type说明Description
rerankMinScoreFloat重排最小分数(类型 `Float`)。the minimum score
返回Returns Builder
返回当前实例,以支持链式调用。this builder
源码Source io/agentscope/core/rag/integration/bailian/RerankConfig.java:108–114

rerankTopN

public Builder rerankTopN(Integer rerankTopN)

设置该配置项。

Sets the top N results after reranking.

参数Parameters
名称Name类型Type说明Description
rerankTopNInteger重排 Top N(类型 `Integer`)。the top N value
返回Returns Builder
返回当前实例,以支持链式调用。this builder
源码Source io/agentscope/core/rag/integration/bailian/RerankConfig.java:124–130

build

public RerankConfig build()

构建新的RerankConfig。

Builds a new RerankConfig.

返回Returns RerankConfig
一种新的RerankConfig 实例。a new RerankConfig instance
源码Source io/agentscope/core/rag/integration/bailian/RerankConfig.java:137–139
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.