RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
Moved agent components into the agent folder (#5496)
writinwaterse61da33672f8
diff --git a/docs/references/agent_component_reference/_category_.json b/docs/guides/agent/agent_component_reference/_category_.jsonsimilarity index 89%rename from docs/references/agent_component_reference/_category_.jsonrename to docs/guides/agent/agent_component_reference/_category_.jsonindex e497bd0ba9..7548ec8031 100644--- a/docs/references/agent_component_reference/_category_.json+++ b/docs/guides/agent/agent_component_reference/_category_.json@@ -1,6 +1,6 @@{"label": "Agent Components",- "position": 3,+ "position": 20,"link": {"type": "generated-index","description": "A complete reference for RAGFlow's agent components."diff --git a/docs/references/agent_component_reference/begin.mdx b/docs/guides/agent/agent_component_reference/begin.mdxsimilarity index 100%rename from docs/references/agent_component_reference/begin.mdxrename to docs/guides/agent/agent_component_reference/begin.mdxdiff --git a/docs/references/agent_component_reference/categorize.mdx b/docs/guides/agent/agent_component_reference/categorize.mdxsimilarity index 100%rename from docs/references/agent_component_reference/categorize.mdxrename to docs/guides/agent/agent_component_reference/categorize.mdxdiff --git a/docs/references/agent_component_reference/concentrator.mdx b/docs/guides/agent/agent_component_reference/concentrator.mdxsimilarity index 100%rename from docs/references/agent_component_reference/concentrator.mdxrename to docs/guides/agent/agent_component_reference/concentrator.mdxdiff --git a/docs/references/agent_component_reference/generate.mdx b/docs/guides/agent/agent_component_reference/generate.mdxsimilarity index 94%rename from docs/references/agent_component_reference/generate.mdxrename to docs/guides/agent/agent_component_reference/generate.mdxindex 7656b00a24..f45c76f9dc 100644--- a/docs/references/agent_component_reference/generate.mdx+++ b/docs/guides/agent/agent_component_reference/generate.mdx@@ -76,6 +76,15 @@ When writing suggestions, pay attention to whether there are ways to improve theWhere `{source_text}` and `{target_lang}` are global variables defined by the **Begin** component, while `{translation_1}` is the output of another **Generate** component with the component ID **Translate directly**.++:::danger IMPORTANT+A **Generate** component relies on keys (variables) to specify its data inputs. Its immediate upstream component is *not* necessarily its data input, and the arrows in the workflow indicate *only* the processing sequence.+:::++++Keys in a **Generate** component are used in conjunction with the system prompt to specify data inputs for the LLM. Use a forward slash `/` to show the keys to use.+### CiteThis toggle sets whether to cite the original text as reference.@@ -95,19 +104,6 @@ This feature is used for multi-turn dialogue *only*.:::-### Key (Variable)--:::danger IMPORTANT-A **Generate** component relies on keys (variables) to specify its data inputs. Its immediate upstream component is *not* necessarily its data input, and the arrows in the workflow indicate *only* the processing sequence.-:::----Keys in a **Generate** component are used in conjunction with the system prompt to specify data inputs for the LLM. As shown in the above screenshot, the values are categorized into two groups:--- **Component Output**: The value of the key should be a component ID.-- **Begin Input**: The value of the key should be the name of a global variable defined in the **Begin** component.-## ExamplesYou can explore our three-step interpreter agent template, where a **Generate** component (component ID: **Reflect**) takes three global variables:diff --git a/docs/references/agent_component_reference/interact.mdx b/docs/guides/agent/agent_component_reference/interact.mdxsimilarity index 100%rename from docs/references/agent_component_reference/interact.mdxrename to docs/guides/agent/agent_component_reference/interact.mdxdiff --git a/docs/references/agent_component_reference/iteration.mdx b/docs/guides/agent/agent_component_reference/iteration.mdxsimilarity index 100%rename from docs/references/agent_component_reference/iteration.mdxrename to docs/guides/agent/agent_component_reference/iteration.mdxdiff --git a/docs/references/agent_component_reference/keyword.mdx b/docs/guides/agent/agent_component_reference/keyword.mdxsimilarity index 100%rename from docs/references/agent_component_reference/keyword.mdxrename to docs/guides/agent/agent_component_reference/keyword.mdxdiff --git a/docs/references/agent_component_reference/message.mdx b/docs/guides/agent/agent_component_reference/message.mdxsimilarity index 100%rename from docs/references/agent_component_reference/message.mdxrename to docs/guides/agent/agent_component_reference/message.mdxdiff --git a/docs/references/agent_component_reference/note.mdx b/docs/guides/agent/agent_component_reference/note.mdxsimilarity index 100%rename from docs/references/agent_component_reference/note.mdxrename to docs/guides/agent/agent_component_reference/note.mdxdiff --git a/docs/references/agent_component_reference/retrieval.mdx b/docs/guides/agent/agent_component_reference/retrieval.mdxsimilarity index 100%rename from docs/references/agent_component_reference/retrieval.mdxrename to docs/guides/agent/agent_component_reference/retrieval.mdxdiff --git a/docs/references/agent_component_reference/rewrite.mdx b/docs/guides/agent/agent_component_reference/rewrite.mdxsimilarity index 96%rename from docs/references/agent_component_reference/rewrite.mdxrename to docs/guides/agent/agent_component_reference/rewrite.mdxindex 27c9a8e03f..b89c5a9a78 100644--- a/docs/references/agent_component_reference/rewrite.mdx+++ b/docs/guides/agent/agent_component_reference/rewrite.mdx@@ -16,7 +16,7 @@ A **Rewrite** component uses a specified LLM to rewrite a user query from the **A **Rewrite** component is essential when you need to optimize a user query based on the context of previous conversations. It is usually the upstream component of a **Retrieval** component.:::tip NOTE-See also the [Keyword](https://ragflow.io/docs/dev/keyword_component) component, a similar component used for multi-turn optimization.+See also the [Keyword](./keyword.mdx) component, a similar component used for multi-turn optimization.:::## Configurationsdiff --git a/docs/references/agent_component_reference/switch.mdx b/docs/guides/agent/agent_component_reference/switch.mdxsimilarity index 88%rename from docs/references/agent_component_reference/switch.mdxrename to docs/guides/agent/agent_component_reference/switch.mdxindex 085f35bf03..7f81e99dbe 100644--- a/docs/references/agent_component_reference/switch.mdx+++ b/docs/guides/agent/agent_component_reference/switch.mdx@@ -13,7 +13,7 @@ A **Switch** component evaluates conditions based on the output of specific comp## Scenarios-A **Switch** component is essential for condition-based direction of execution flow. While it shares similarities with the [Categorize](https://ragflow.io/docs/dev/categorize_component) component, which is also used in multi-pronged strategies, the key distinction lies in their approach: the evaluation of the **Switch** component is rule-based, whereas the **Categorize** component involves AI and uses an LLM for decision-making.+A **Switch** component is essential for condition-based direction of execution flow. While it shares similarities with the [Categorize](./categorize.mdx) component, which is also used in multi-pronged strategies, the key distinction lies in their approach: the evaluation of the **Switch** component is rule-based, whereas the **Categorize** component involves AI and uses an LLM for decision-making.## Configurationsdiff --git a/docs/references/agent_component_reference/template.mdx b/docs/guides/agent/agent_component_reference/template.mdxsimilarity index 100%rename from docs/references/agent_component_reference/template.mdxrename to docs/guides/agent/agent_component_reference/template.mdxdiff --git a/docs/release_notes.md b/docs/release_notes.mdindex 746ca38b39..b99800e758 100644--- a/docs/release_notes.md+++ b/docs/release_notes.md@@ -15,7 +15,7 @@ Released on February 6, 2025.- Supports DeepSeek R1 and DeepSeek V3.- GraphRAG refactor: Knowledge graph is dynamically built on an entire knowledge base (dataset) rather than on an individual file, and automatically updated when a newly uploaded file starts parsing. See [here](https://ragflow.io/docs/dev/construct_knowledge_graph).-- Adds an **Iteration** agent component and a **Research report generator** agent template. See [here](./references/agent_component_reference/iteration.mdx).+- Adds an **Iteration** agent component and a **Research report generator** agent template. See [here](./guides/agent/agent_component_reference/iteration.mdx).- New UI language: Portuguese.- Allows setting metadata for a specific file in a knowledge base to enhance AI-powered chats. See [here](./guides/configure_knowledge_base/set_metadata.md).- Upgrades RAGFlow's document engine [Infinity](https://github.com/infiniflow/infinity) to v0.6.0.dev3.@@ -32,19 +32,19 @@ The **Tag knowledge base** feature is *unavailable* on the [Infinity](https://gi- [Construct knowledge graph](./guides/configure_knowledge_base/construct_knowledge_graph.md)- [Set metadata](./guides/configure_knowledge_base/set_metadata.md)-- [Begin component](./references/agent_component_reference/begin.mdx)-- [Generate component](./references/agent_component_reference/generate.mdx)-- [Interact component](./references/agent_component_reference/interact.mdx)-- [Retrieval component](./references/agent_component_reference/retrieval.mdx)-- [Categorize component](./references/agent_component_reference/categorize.mdx)-- [Keyword component](./references/agent_component_reference/keyword.mdx)-- [Message component](./references/agent_component_reference/message.mdx)-- [Rewrite component](./references/agent_component_reference/rewrite.mdx)-- [Switch component](./references/agent_component_reference/switch.mdx)-- [Concentrator component](./references/agent_component_reference/concentrator.mdx)-- [Template component](./references/agent_component_reference/template.mdx)-- [Iteration component](./references/agent_component_reference/iteration.mdx)-- [Note component](./references/agent_component_reference/note.mdx)+- [Begin component](./guides/agent/agent_component_reference/begin.mdx)+- [Generate component](./guides/agent/agent_component_reference/generate.mdx)+- [Interact component](./guides/agent/agent_component_reference/interact.mdx)+- [Retrieval component](./guides/agent/agent_component_reference/retrieval.mdx)+- [Categorize component](./guides/agent/agent_component_reference/categorize.mdx)+- [Keyword component](./guides/agent/agent_component_reference/keyword.mdx)+- [Message component](./guides/agent/agent_component_reference/message.mdx)+- [Rewrite component](./guides/agent/agent_component_reference/rewrite.mdx)+- [Switch component](./guides/agent/agent_component_reference/switch.mdx)+- [Concentrator component](./guides/agent/agent_component_reference/concentrator.mdx)+- [Template component](./guides/agent/agent_component_reference/template.mdx)+- [Iteration component](./guides/agent/agent_component_reference/iteration.mdx)+- [Note component](./guides/agent/agent_component_reference/note.mdx)## v0.15.1