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.
String模型名称。the model name
源码Source
io/agentscope/core/rag/integration/bailian/RerankConfig.java:41–43getRerankMinScore
public Float getRerankMinScore()
获取重排最小分数。
Gets the minimum score threshold for reranking.
Float返回数值结果。the minimum score (0.01-1.00)
源码Source
io/agentscope/core/rag/integration/bailian/RerankConfig.java:50–52getRerankTopN
public Integer getRerankTopN()
获取 getRerankTopN。
Gets the top N results after reranking.
Integer返回数值结果。the top N value (1-20)
源码Source
io/agentscope/core/rag/integration/bailian/RerankConfig.java:59–61builder
public static Builder builder()
static
创建新的构建器。
Creates a new builder.
Builder一种新的构建器实例。a new Builder instance
源码Source
io/agentscope/core/rag/integration/bailian/RerankConfig.java:68–70嵌套类详情Nested Class Detail
Builder
public static class BuilderRerankConfig的构建器。位于 io.agentscope.core.rag.integration.bailian 包。核心成员包括 modelName、rerankMinScore、rerankTopN、build。
Builder for RerankConfig.