Skip to content

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

fix generate string join issue (#2983)

Kevin Hu320e8f65538f
diff --git a/agent/component/generate.py b/agent/component/generate.py
index 322a3244ed..9297cdca0b 100644
--- a/agent/component/generate.py
+++ b/agent/component/generate.py
@@ -108,7 +108,7 @@ class Generate(ComponentBase):
if "content" not in out.columns:
kwargs[para["key"]] = "Nothing"
else:
- kwargs[para["key"]] = " - " + "\n - ".join(out["content"])
+ kwargs[para["key"]] = " - "+"\n - ".join([o if isinstance(o, str) else str(o) for o in out["content"]])
kwargs["input"] = input
for n, v in kwargs.items():