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
Fix: agent second round issue. (#9863)
Kevin Hu79968c37a8e6
diff --git a/agent/component/llm.py b/agent/component/llm.pyindex b68f6abe1c..f02d957a42 100644--- a/agent/component/llm.py+++ b/agent/component/llm.py@@ -17,6 +17,7 @@ import jsonimport loggingimport osimport re+from copy import deepcopyfrom typing import Any, Generatorimport json_repairfrom functools import partial@@ -141,7 +142,7 @@ class LLM(ComponentBase):for p in self._param.prompts:if msg and msg[-1]["role"] == p["role"]:continue- msg.append(p)+ msg.append(deepcopy(p))sys_prompt = self.string_format(sys_prompt, args)for m in msg: