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 duckduckgo.py (#1497)
H38a90c32b20b
diff --git a/graph/component/duckduckgo.py b/graph/component/duckduckgo.pyindex 08cab52ea9..95ce3e8576 100644--- a/graph/component/duckduckgo.py+++ b/graph/component/duckduckgo.py@@ -46,12 +46,12 @@ class DuckDuckGo(ComponentBase, ABC):if not ans:return DuckDuckGo.be_output(self._param.no)- if self.channel == "text":+ if self._param.channel == "text":with DDGS() as ddgs:# {'title': '', 'href': '', 'body': ''}duck_res = [{"content": '<a href="' + i["href"] + '">' + i["title"] + '</a> ' + i["body"]} for i inddgs.text(ans, max_results=self._param.top_n)]- elif self.channel == "news":+ elif self._param.channel == "news":with DDGS() as ddgs:# {'date': '', 'title': '', 'body': '', 'url': '', 'image': '', 'source': ''}duck_res = [{"content": '<a href="' + i["url"] + '">' + i["title"] + '</a> ' + i["body"]} for i in