Skip to content

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

Fix 2 continuous images, the first image got lost (#19083)

Wang Qid94396ff9703
diff --git a/rag/app/naive.py b/rag/app/naive.py
index bce88e08e5..51593887b9 100644
--- a/rag/app/naive.py
+++ b/rag/app/naive.py
@@ -729,6 +729,7 @@ class Docx(DocxParser):
else:
current_image = self.get_picture(self.doc, p)
if current_image is not None:
+ flush_last_image()
last_image = current_image
for run in p.runs: