RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
fix bug of ragflowdocxpparser (#1642)
Kevin Hu95821f6fb6c8
diff --git a/deepdoc/parser/docx_parser.py b/deepdoc/parser/docx_parser.pyindex 6bce3d622f..5780410993 100644--- a/deepdoc/parser/docx_parser.py+++ b/deepdoc/parser/docx_parser.py@@ -127,7 +127,7 @@ class RAGFlowDocxParser:runs_within_single_paragraph.append(run.text) # append run.text first# wrap page break checker into a static method- if RAGFlowDocxParser.has_page_break(run._element.xml):+ if 'lastRenderedPageBreak' in run._element.xml:pn += 1secs.append(("".join(runs_within_single_paragraph), p.style.name)) # then concat run.text as part of the paragraph