RAGMode
@Deprecated(forRemoval = true, since = "2.0.0") public enum RAGMode
源码Source
io/agentscope/core/rag/RAGMode.java:31–56定义RAG 模式相关取值的枚举。位于 io.agentscope.core.rag 包。核心成员包括 GENERIC、AGENTIC、NONE。
RAG (Retrieval-Augmented Generation) mode enumeration.
Defines how knowledge retrieval is integrated with the agent:
-
GENERIC: Knowledge is automatically retrieved and injected before each reasoning step via Hook
-
AGENTIC: Agent actively decides when to retrieve knowledge via Tool
-
NONE: No RAG functionality enabled
枚举常量摘要Enum Constant Summary
| 常量Constant | 说明Description |
|---|---|
GENERIC | 执行泛型相关操作。 Generic mode: Knowledge is automatically retrieved and injected
before each reasoning step via Hook. |
AGENTIC | 执行 `AGENTIC` 方法。 Agentic mode: Agent decides when to retrieve knowledge via Tool. |
NONE | 执行 `NONE` 方法。 Disabled mode: No RAG functionality. |
枚举常量详情Enum Constant Detail
GENERIC
GENERIC
staticfinal
执行泛型相关操作。
Generic mode: Knowledge is automatically retrieved and injected before each reasoning step via Hook.
源码Source
io/agentscope/core/rag/RAGMode.java:40AGENTIC
AGENTIC
staticfinal
执行 AGENTIC 方法。
Agentic mode: Agent decides when to retrieve knowledge via Tool.
源码Source
io/agentscope/core/rag/RAGMode.java:48NONE
NONE
staticfinal
执行 NONE 方法。
Disabled mode: No RAG functionality.
源码Source
io/agentscope/core/rag/RAGMode.java:55