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 pdf_paser char content confusion (#1462)
H2290c2a2f0fc
diff --git a/deepdoc/parser/pdf_parser.py b/deepdoc/parser/pdf_parser.pyindex fce9e91de4..c7aaa9d580 100644--- a/deepdoc/parser/pdf_parser.py+++ b/deepdoc/parser/pdf_parser.py@@ -287,14 +287,15 @@ class RAGFlowPdfParser:)# solve char content confusion- record_error_length = 0+ record_error_length, ct = 0, 1for c in chars[0:128]:ii = Recognizer.find_overlapped(c, bxs)if ii is None:continue- record_error_length += abs((bxs[ii]["bottom"] + bxs[ii]["bottom"] - c["bottom"] - c["top"]) / 2)+ record_error_length += abs((bxs[ii]["bottom"] + bxs[ii]["top"] - c["bottom"] - c["top"]) / 2)+ ct += 1- record_error_length = record_error_length / 128+ record_error_length = record_error_length / ctfor char in chars:char["top"] -= record_error_lengthchar["bottom"] -= record_error_length