mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-12 03:39:03 +08:00
expand rerank range (#2746)
### What problem does this PR solve? ### Type of change - [x] Performance Improvement
This commit is contained in:
parent
5cc9981a4d
commit
04ff9cda7c
@ -364,7 +364,7 @@ class Dealer:
|
||||
if not question:
|
||||
return ranks
|
||||
RERANK_PAGE_LIMIT = 3
|
||||
req = {"kb_ids": kb_ids, "doc_ids": doc_ids, "size": page_size*RERANK_PAGE_LIMIT,
|
||||
req = {"kb_ids": kb_ids, "doc_ids": doc_ids, "size": max(page_size*RERANK_PAGE_LIMIT, 128),
|
||||
"question": question, "vector": True, "topk": top,
|
||||
"similarity": similarity_threshold,
|
||||
"available_int": 1}
|
||||
|
Loading…
x
Reference in New Issue
Block a user