Skip to content

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

Fix: law parser (#10897)

Billy Baoab52ffc9c030
diff --git a/rag/app/laws.py b/rag/app/laws.py
index 35cb706d8c..4e398a1de4 100644
--- a/rag/app/laws.py
+++ b/rag/app/laws.py
@@ -87,7 +87,7 @@ class Docx(DocxParser):
root = Node(level=0, depth=h2_level, texts=[])
root.build_tree(lines)
- return [("\n").join(element) for element in root.get_tree() if element]
+ return [element for element in root.get_tree() if element]
def __str__(self) -> str: