diff --git a/services/docreader/requirements.txt b/services/docreader/requirements.txt index 7fd61e4d..ef16eac0 100644 --- a/services/docreader/requirements.txt +++ b/services/docreader/requirements.txt @@ -13,7 +13,7 @@ urllib3 markdownify mistletoe goose3[all] -paddleocr==3.0.0 +paddleocr==3.2.0 markdown pypdf cos-python-sdk-v5 @@ -25,7 +25,7 @@ ollama pdfplumber --extra-index-url https://www.paddlepaddle.org.cn/packages/stable/cpu/ -paddlepaddle==3.0.0 +paddlepaddle==3.2.0 # --extra-index-url https://www.paddlepaddle.org.cn/packages/stable/cu126/ # paddlepaddle-gpu==3.0.0 \ No newline at end of file diff --git a/services/docreader/src/parser/doc_parser.py b/services/docreader/src/parser/doc_parser.py index 8b36664b..71fc897c 100644 --- a/services/docreader/src/parser/doc_parser.py +++ b/services/docreader/src/parser/doc_parser.py @@ -54,6 +54,7 @@ class DocParser(BaseParser): enable_multimodal=self.enable_multimodal, chunk_size=self.chunk_size, chunk_overlap=self.chunk_overlap, + chunking_config=self.chunking_config, separators=self.separators, ) text = docx_parser.parse_into_text(docx_content)