From 93d621a66618ac4b59f9afe6db8dee4a6fb9bc36 Mon Sep 17 00:00:00 2001 From: Magicbook1108 Date: Wed, 4 Mar 2026 11:51:10 +0800 Subject: [PATCH] Fix: Correct PDF chunking parameter name in naive (#13357) ### What problem does this PR solve? Fix: Correct PDF chunking parameter name in naive #13325 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- rag/app/naive.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rag/app/naive.py b/rag/app/naive.py index 22606c3b32..e7f6730d80 100644 --- a/rag/app/naive.py +++ b/rag/app/naive.py @@ -252,7 +252,7 @@ PARSERS = { "deepdoc": by_deepdoc, "mineru": by_mineru, "docling": by_docling, - "tcadp": by_tcadp, + "tcadp parser": by_tcadp, "paddleocr": by_paddleocr, "plaintext": by_plaintext, # default } @@ -854,7 +854,7 @@ def chunk(filename, binary=None, from_page=0, to_page=100000, lang="Chinese", ca urls = extract_links_from_pdf(binary) if isinstance(layout_recognizer, bool): - layout_recognizer = "DeepDOC" if layout_recognizer else "Plain Text" + layout_recognizer = "DeepDOC" if layout_recognizer else "PlainText" name = layout_recognizer.strip().lower() parser = PARSERS.get(name, by_plaintext)