Skip to content

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

qa版本最终阶段保留pdf_intermediate_dict信息

赵小蒙1d5d778197c1
diff --git a/magic_pdf/pipeline.py b/magic_pdf/pipeline.py
index c2008a19..da8f2e8d 100644
--- a/magic_pdf/pipeline.py
+++ b/magic_pdf/pipeline.py
@@ -520,7 +520,7 @@ def ocr_pdf_intermediate_dict_to_markdown_with_para_for_qa(
)
# 把无用的信息清空
jso["doc_layout_result"] = ""
- jso["pdf_intermediate_dict"] = ""
+ jso["pdf_intermediate_dict"] = pdf_intermediate_dict
jso["pdf_meta"] = ""
except Exception as e:
jso = exception_handler(jso, e)