Fix: renrank_model and pdf_parser bugs | Update: session API (#2601)

### What problem does this PR solve?

Fix: renrank_model and pdf_parser bugs | Update: session API
#2575
#2559
### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
- [x] Refactoring

---------

Co-authored-by: liuhua <10215101452@stu.ecun.edu.cn>
This commit is contained in:
liuhua
2024-09-26 16:05:25 +08:00
committed by GitHub
parent f6bfe4d970
commit b68d349bd6
6 changed files with 68 additions and 41 deletions

View File

@ -488,7 +488,7 @@ class RAGFlowPdfParser:
i += 1
continue
if not down["text"].strip():
if not down["text"].strip() or not up["text"].strip():
i += 1
continue