ragflow/rag/app
Tuan Le 6b1221d2f6
Fix parser_config access for layout_recognize in presentation.py (#8492)
### What problem does this PR solve?
This PR addresses an issue in the presentation parser where the
`layout_recognize` configuration was incorrectly retrieved from
`kwargs.get("layout_recognize", "DeepDOC")`. Instead, it should be
sourced from the `parser_config` parameter, specifically
`parser_config.get("layout_recognize", "DeepDOC")`.

This mismatch could cause the parser to default to the "DeepDOC" layout
recognizer, ignoring any alternative recognition method specified in the
parser configuration. As a result, PDF document parsing might use an
incorrect recognition engine.

The fix ensures the presentation parser consistently uses the
`layout_recognize` setting from `parser_config`, aligning with the
configuration access patterns used elsewhere in the codebase.

### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
2025-06-26 11:54:43 +08:00
..
__init__.py Update comments (#4569) 2025-01-21 20:52:28 +08:00
audio.py Update comments (#4569) 2025-01-21 20:52:28 +08:00
book.py Light GraphRAG (#4585) 2025-01-22 19:43:14 +08:00
email.py Light GraphRAG (#4585) 2025-01-22 19:43:14 +08:00
laws.py Light GraphRAG (#4585) 2025-01-22 19:43:14 +08:00
manual.py Feat: add image preview to retrieval test. (#7610) 2025-05-13 14:30:36 +08:00
naive.py Fix typo in code (#8327) 2025-06-18 09:41:09 +08:00
one.py Light GraphRAG (#4585) 2025-01-22 19:43:14 +08:00
paper.py Light GraphRAG (#4585) 2025-01-22 19:43:14 +08:00
picture.py Feat: add image preview to retrieval test. (#7610) 2025-05-13 14:30:36 +08:00
presentation.py Fix parser_config access for layout_recognize in presentation.py (#8492) 2025-06-26 11:54:43 +08:00
qa.py Fix: Solve the OOM issue when passing large PDF files while using QA chunking method. (#8464) 2025-06-25 10:25:45 +08:00
resume.py Update comments (#4569) 2025-01-21 20:52:28 +08:00
table.py Fix the bug of long type value overflow (#8313) 2025-06-24 18:18:30 +08:00
tag.py Error storing tag in Redis (#7541) 2025-05-09 10:17:09 +08:00