From 13f04b7cca4a7ebcabd35e5557e335797ad8f047 Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Thu, 23 Jan 2025 12:30:46 +0800 Subject: [PATCH] Fix pdf applying Q&A issue. (#4599) ### What problem does this PR solve? ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- rag/app/qa.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rag/app/qa.py b/rag/app/qa.py index a0c77c23..0ad2dc9f 100644 --- a/rag/app/qa.py +++ b/rag/app/qa.py @@ -177,7 +177,7 @@ class Pdf(PdfParser): tbl_tag = "@@{}\t{:.1f}\t{:.1f}\t{:.1f}\t{:.1f}##" \ .format(tbl_pn, tbl_left, tbl_right, tbl_top, tbl_bottom) _tbl_text = ''.join(tbls[tbl_index][0][1]) - return tbl_pn, tbl_left, tbl_right, tbl_top, tbl_bottom, tbl_tag, + return tbl_pn, tbl_left, tbl_right, tbl_top, tbl_bottom, tbl_tag, _tbl_text class Docx(DocxParser):