Skip to content

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

Fix: The document generation node cannot generate the output content of a large model to a file. #13321 (#13326)

balibabueca60208e3a8
diff --git a/agent/component/docs_generator.py b/agent/component/docs_generator.py
index 9c24429584..a3f165a552 100644
--- a/agent/component/docs_generator.py
+++ b/agent/component/docs_generator.py
@@ -277,7 +277,7 @@ class PDFGenerator(Message, ABC):
print(f"Starting PDF generation for title: {title}, content length: {len(content)} chars")
# Resolve variable references in content using canvas
- if content and self._canvas.is_reff(content):
+ if content and self._canvas.is_reff(content.strip()):
# Extract the variable reference and get its value
import re
matches = re.findall(self.variable_ref_patt, content, flags=re.DOTALL)