mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
expand rerank range (#2746)
### What problem does this PR solve? ### Type of change - [x] Performance Improvement
This commit is contained in:
@ -364,7 +364,7 @@ class Dealer:
|
|||||||
if not question:
|
if not question:
|
||||||
return ranks
|
return ranks
|
||||||
RERANK_PAGE_LIMIT = 3
|
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,
|
"question": question, "vector": True, "topk": top,
|
||||||
"similarity": similarity_threshold,
|
"similarity": similarity_threshold,
|
||||||
"available_int": 1}
|
"available_int": 1}
|
||||||
|
|||||||
Reference in New Issue
Block a user