From 2b9145948f56cadd31bc6c099843fe6e443e99b2 Mon Sep 17 00:00:00 2001 From: buua436 <66937541+buua436@users.noreply.github.com> Date: Mon, 10 Nov 2025 15:08:24 +0800 Subject: [PATCH] Fix:not enough values to unpack (expected 3, got 2) in general chunk (#11139) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### What problem does this PR solve? issue: #11136 change: not enough values to unpack (expected 3, got 2) in general chunk ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- rag/app/naive.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rag/app/naive.py b/rag/app/naive.py index e3126783b..d88c2bea4 100644 --- a/rag/app/naive.py +++ b/rag/app/naive.py @@ -62,7 +62,7 @@ def by_mineru(filename, binary=None, from_page=0, to_page=100000, lang="Chinese" if not pdf_parser.check_installation(): callback(-1, "MinerU not found.") - return None, None + return None, None, pdf_parser sections, tables = pdf_parser.parse_pdf( filepath=filename, @@ -80,7 +80,7 @@ def by_docling(filename, binary=None, from_page=0, to_page=100000, lang="Chinese if not pdf_parser.check_installation(): callback(-1, "Docling not found.") - return None, None + return None, None, pdf_parser sections, tables = pdf_parser.parse_pdf( filepath=filename, @@ -97,7 +97,7 @@ def by_tcadp(filename, binary=None, from_page=0, to_page=100000, lang="Chinese", if not tcadp_parser.check_installation(): callback(-1, "TCADP parser not available. Please check Tencent Cloud API configuration.") - return None, None + return None, None, tcadp_parser sections, tables = tcadp_parser.parse_pdf( filepath=filename,