Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fix:update searxng_url logic (#10440)

buua436ee0c38da6645
diff --git a/agent/tools/searxng.py b/agent/tools/searxng.py
index f8c30bfd1a..32e8075851 100644
--- a/agent/tools/searxng.py
+++ b/agent/tools/searxng.py
@@ -85,7 +85,7 @@ class SearXNG(ToolBase, ABC):
self.set_output("formalized_content", "")
return ""
- searxng_url = (kwargs.get("searxng_url") or getattr(self._param, "searxng_url", "") or "").strip()
+ searxng_url = (getattr(self._param, "searxng_url", "") or kwargs.get("searxng_url") or "").strip()
# In try-run, if no URL configured, just return empty instead of raising
if not searxng_url:
self.set_output("formalized_content", "")