AS AgentScopeAPI 手册 / API Reference

RerankConfig

public class RerankConfig
源码Source io/agentscope/core/rag/integration/bailian/RerankConfig.java:24–141

重排配置,保存相关配置项。位于 io.agentscope.core.rag.integration.bailian 包。核心成员包括 getModelName、getRerankMinScore、getRerankTopN、builder。

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

类Class类型Kind说明Description
Builder类class
RerankConfig的构建器。
Builder for RerankConfig.

方法摘要Method Summary

方法Method说明Description
public String getModelName()
获取重排模型名称。
Gets the rerank model name.
public Float getRerankMinScore()
获取重排最小分数。
Gets the minimum score threshold for reranking.
public Integer getRerankTopN()
获取 `getRerankTopN`。
Gets the top N results after reranking.
public static Builder builder()
static
创建新的构建器。
Creates a new builder.

方法详情Method Detail

getModelName

public String getModelName()

获取重排模型名称。

Gets the rerank model name.

返回Returns String
模型名称。the model name
源码Source io/agentscope/core/rag/integration/bailian/RerankConfig.java:41–43

getRerankMinScore

public Float getRerankMinScore()

获取重排最小分数。

Gets the minimum score threshold for reranking.

返回Returns Float
返回数值结果。the minimum score (0.01-1.00)
源码Source io/agentscope/core/rag/integration/bailian/RerankConfig.java:50–52

getRerankTopN

public Integer getRerankTopN()

获取 getRerankTopN。

Gets the top N results after reranking.

返回Returns Integer
返回数值结果。the top N value (1-20)
源码Source io/agentscope/core/rag/integration/bailian/RerankConfig.java:59–61

builder

public static Builder builder()
static

创建新的构建器。

Creates a new builder.

返回Returns Builder
一种新的构建器实例。a new Builder instance
源码Source io/agentscope/core/rag/integration/bailian/RerankConfig.java:68–70

嵌套类详情Nested Class Detail

Builder

public static class Builder

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

Builder for RerankConfig.

基于官方固定版本源码静态生成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.