RAGFlowConfig
public class RAGFlowConfig
io/agentscope/core/rag/integration/ragflow/RAGFlowConfig.java:33–724RAG Flow 配置,保存相关配置项。位于 io.agentscope.core.rag.integration.ragflow 包。核心成员包括 builder、getApiKey、getBaseUrl、getDatasetIds、getDocumentIds、getTopK。
Configuration for RAGFlow integration.
This class holds the configuration for connecting to RAGFlow service, including authentication, endpoint, and retrieval parameters.
API Reference: This configuration is designed to work with RAGFlow's retrieval API:
POST /api/v1/retrieval
嵌套类摘要Nested Class Summary
| 类Class | 类型Kind | 说明Description |
|---|---|---|
Builder | 类class | 构建器,用于构建并配置目标实例。 A class in io.agentscope.core.rag.integration.ragflow that turns private documents into retrievable knowledge. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public static Builder builder()static | 返回构建器实例。 Returns the builder. |
public String getApiKey() | 获取API 键。 Returns the api key. |
public String getBaseUrl() | 获取基类 URL。 Returns the base url. |
public List<String> getDatasetIds() | 获取 `getDatasetIds`。 Gets the dataset IDs. |
public List<String> getDocumentIds() | 获取文档 IDs 到过滤检索。 Gets the document IDs to filter retrieval. |
public Integer getTopK() | 获取 `getTopK`。 Gets the top K value for retrieval. |
public Double getSimilarityThreshold() | 获取 `getSimilarityThreshold`。 Gets the similarity threshold for filtering results. |
public Double getVectorSimilarityWeight() | 获取 `getVectorSimilarityWeight`。 Gets the vector similarity weight. |
public Integer getPage() | 获取页码。 Gets the page number for pagination. |
public Integer getPageSize() | 获取页码大小。 Gets the page size for pagination. |
public Boolean getUseKg() | 获取使用 Kg。 Gets whether to use knowledge graph for multi-hop queries. |
public Boolean getTocEnhance() | 获取 `getTocEnhance`。 Gets whether to use TOC (Table of Contents) enhancement. |
public String getRerankId() | 获取重排模型标识。 Gets the rerank model ID. |
public Boolean getKeyword() | 获取 `getKeyword`。 Gets whether keyword-based matching is enabled. |
public Boolean getHighlight() | 获取 `getHighlight`。 Gets whether highlighting of matched terms is enabled. |
public List<String> getCrossLanguages() | 获取 `getCrossLanguages`。 Gets the list of languages for cross-language retrieval. |
public Map<String, Object> getMetadataCondition() | 获取 `getMetadataCondition`。 Gets the metadata filtering conditions. |
public Duration getTimeout() | 获取超时。 Returns the timeout. |
public Integer getMaxRetries() | 获取最大重试。 Returns the max retries. |
public Map<String, String> getCustomHeaders() | 获取自定义请求头。 Returns the custom headers. |
方法详情Method Detail
builder
public static Builder builder()
返回构建器实例。
Returns the builder.
Builderio/agentscope/core/rag/integration/ragflow/RAGFlowConfig.java:115–117getApiKey
public String getApiKey()
获取API 键。
Returns the api key.
Stringio/agentscope/core/rag/integration/ragflow/RAGFlowConfig.java:119–121getBaseUrl
public String getBaseUrl()
获取基类 URL。
Returns the base url.
Stringio/agentscope/core/rag/integration/ragflow/RAGFlowConfig.java:123–125getDatasetIds
public List<String> getDatasetIds()
获取 getDatasetIds。
Gets the dataset IDs.
List<String>io/agentscope/core/rag/integration/ragflow/RAGFlowConfig.java:134–136getDocumentIds
public List<String> getDocumentIds()
获取文档 IDs 到过滤检索。
Gets the document IDs to filter retrieval.
List<String>io/agentscope/core/rag/integration/ragflow/RAGFlowConfig.java:145–147getTopK
public Integer getTopK()
获取 getTopK。
Gets the top K value for retrieval.
Integerio/agentscope/core/rag/integration/ragflow/RAGFlowConfig.java:156–158getSimilarityThreshold
public Double getSimilarityThreshold()
获取 getSimilarityThreshold。
Gets the similarity threshold for filtering results.
Doubleio/agentscope/core/rag/integration/ragflow/RAGFlowConfig.java:167–169getVectorSimilarityWeight
public Double getVectorSimilarityWeight()
获取 getVectorSimilarityWeight。
Gets the vector similarity weight.
Doubleio/agentscope/core/rag/integration/ragflow/RAGFlowConfig.java:181–183getPage
public Integer getPage()
获取页码。
Gets the page number for pagination.
Integerio/agentscope/core/rag/integration/ragflow/RAGFlowConfig.java:192–194getPageSize
public Integer getPageSize()
获取页码大小。
Gets the page size for pagination.
Integerio/agentscope/core/rag/integration/ragflow/RAGFlowConfig.java:203–205getUseKg
public Boolean getUseKg()
获取使用 Kg。
Gets whether to use knowledge graph for multi-hop queries.
Booleanio/agentscope/core/rag/integration/ragflow/RAGFlowConfig.java:214–216getTocEnhance
public Boolean getTocEnhance()
获取 getTocEnhance。
Gets whether to use TOC (Table of Contents) enhancement.
Booleanio/agentscope/core/rag/integration/ragflow/RAGFlowConfig.java:225–227getRerankId
public String getRerankId()
获取重排模型标识。
Gets the rerank model ID.
Stringio/agentscope/core/rag/integration/ragflow/RAGFlowConfig.java:237–239getKeyword
public Boolean getKeyword()
获取 getKeyword。
Gets whether keyword-based matching is enabled.
Booleanio/agentscope/core/rag/integration/ragflow/RAGFlowConfig.java:248–250getHighlight
public Boolean getHighlight()
获取 getHighlight。
Gets whether highlighting of matched terms is enabled.
Booleanio/agentscope/core/rag/integration/ragflow/RAGFlowConfig.java:259–261getCrossLanguages
public List<String> getCrossLanguages()
获取 getCrossLanguages。
Gets the list of languages for cross-language retrieval.
List<String>io/agentscope/core/rag/integration/ragflow/RAGFlowConfig.java:268–270getMetadataCondition
public Map<String, Object> getMetadataCondition()
获取 getMetadataCondition。
Gets the metadata filtering conditions.
Map<String, Object>io/agentscope/core/rag/integration/ragflow/RAGFlowConfig.java:286–288getTimeout
public Duration getTimeout()
获取超时。
Returns the timeout.
Durationio/agentscope/core/rag/integration/ragflow/RAGFlowConfig.java:290–292getMaxRetries
public Integer getMaxRetries()
获取最大重试。
Returns the max retries.
Integerio/agentscope/core/rag/integration/ragflow/RAGFlowConfig.java:294–296getCustomHeaders
public Map<String, String> getCustomHeaders()
获取自定义请求头。
Returns the custom headers.
Map<String, String>io/agentscope/core/rag/integration/ragflow/RAGFlowConfig.java:298–300嵌套类详情Nested Class Detail
Builder
public static class Builder构建器,用于构建并配置目标实例。位于 io.agentscope.core.rag.integration.ragflow 包。核心成员包括 apiKey、baseUrl、datasetIds、addDatasetId、documentIds、addDocumentId。
A class in io.agentscope.core.rag.integration.ragflow that turns private documents into retrievable knowledge. Declared in io.agentscope.core.rag.integration.ragflow.