Skip to content

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

fixbug for computing 'not concating feature' (#896)

xinzhuang3bbdf3b7704a
diff --git a/deepdoc/parser/pdf_parser.py b/deepdoc/parser/pdf_parser.py
index b95fd2f741..5068eed62b 100644
--- a/deepdoc/parser/pdf_parser.py
+++ b/deepdoc/parser/pdf_parser.py
@@ -396,7 +396,7 @@ class RAGFlowPdfParser:
]
# features for not concating
feats = [
- b.get("layoutno", 0) != b.get("layoutno", 0),
+ b.get("layoutno", 0) != b_.get("layoutno", 0),
b["text"].strip()[-1] in "。?!?",
self.is_english and b["text"].strip()[-1] in ".!?",
b["page_number"] == b_["page_number"] and b_["top"] -