Skip to content

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

Refactor: improve mineru_parser get property logic (#11268)

Stephen Hu12db62b9c736
diff --git a/deepdoc/parser/mineru_parser.py b/deepdoc/parser/mineru_parser.py
index 3d4c9f1490..bb663de0dd 100644
--- a/deepdoc/parser/mineru_parser.py
+++ b/deepdoc/parser/mineru_parser.py
@@ -434,7 +434,7 @@ class MinerUParser(RAGFlowPdfParser):
if not section.strip():
section = "FAILED TO PARSE TABLE"
case MinerUContentType.IMAGE:
- section = "".join(output["image_caption"]) + "\n" + "".join(output["image_footnote"])
+ section = "".join(output.get(["image_caption"],[])) + "\n" + "".join(output.get(["image_footnote"],[]))
case MinerUContentType.EQUATION:
section = output["text"]
case MinerUContentType.CODE: