ragflow/rag/nlp
Bo Liu 321e9f3719
fix: stop rerank by model when search result is empty (#4203)
### What problem does this PR solve?


stop rerank by model when search result is empty, otherwise rerank may
raise an error (qwen).

### Type of change

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

Co-authored-by: 刘博 <liubo@ynby.cn>
2024-12-24 14:33:46 +08:00
..
__init__.py Fix bug in hierarchical_merge function (#4006) 2024-12-13 08:50:58 +08:00
query.py Fix syn error. (#3953) 2024-12-10 10:54:54 +08:00
rag_tokenizer.py Refactor trie load and construct (#4083) 2024-12-18 12:52:56 +08:00
search.py fix: stop rerank by model when search result is empty (#4203) 2024-12-24 14:33:46 +08:00
surname.py Update info (#1005) 2024-05-31 09:53:04 +08:00
synonym.py Added kb_id filter to knn. Fix #3458 (#3513) 2024-11-20 20:53:30 +08:00
term_weight.py Fix errors detected by Ruff (#3918) 2024-12-08 14:21:12 +08:00