Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

fix: use image_data_list before assign

wizardchend801112f5f0d
diff --git a/services/docreader/src/parser/docx_parser.py b/services/docreader/src/parser/docx_parser.py
index 54d1f0cfa..c7ceaef0a 100644
--- a/services/docreader/src/parser/docx_parser.py
+++ b/services/docreader/src/parser/docx_parser.py
@@ -1193,10 +1193,10 @@ def process_page_multiprocess(
# Process content sequence to maintain order between processes
processed_content = []
temp_image_index = 0
+ image_data_list = []
if enable_multimodal:
# First pass: save all images to temporary files
- image_data_list = []
for i, image_object in enumerate(image_objects):
img_path = _save_image_to_temp(process_logger, image_object, page_num, i)
if img_path: