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: Set Output In Category Component (#8010)
Stephen Huf56f7a5f94d1
diff --git a/agent/component/categorize.py b/agent/component/categorize.pyindex 9171f809aa..34bd2cdeac 100644--- a/agent/component/categorize.py+++ b/agent/component/categorize.py@@ -99,9 +99,13 @@ class Categorize(Generate, ABC):# If a category is found, return the category with the highest count.if any(category_counts.values()):max_category = max(category_counts.items(), key=lambda x: x[1])- return Categorize.be_output(self._param.category_description[max_category[0]]["to"])+ res = Categorize.be_output(self._param.category_description[max_category[0]]["to"])+ self.set_output(res)+ return res- return Categorize.be_output(list(self._param.category_description.items())[-1][1]["to"])+ res = Categorize.be_output(list(self._param.category_description.items())[-1][1]["to"])+ self.set_output(res)+ return resdef debug(self, **kwargs):df = self._run([], **kwargs)