Files
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
..
2025-01-21 20:52:28 +08:00
2025-01-21 20:52:28 +08:00
2025-01-22 19:43:14 +08:00
2025-01-22 19:43:14 +08:00
2025-01-22 19:43:14 +08:00
2025-06-18 09:41:09 +08:00
2025-01-22 19:43:14 +08:00
2025-01-22 19:43:14 +08:00
2025-01-21 20:52:28 +08:00
2025-05-09 10:17:09 +08:00