Open
Description
Self Checks
- I have searched for existing issues search for existing issues, including closed ones.
- I confirm that I am using English to submit this report (Language Policy).
- Non-english title submitions will be closed directly ( 非英文标题的提交将会被直接关闭 ) (Language Policy).
- Please do not modify this template :) and fill in all the required fields.
Describe your problem
confused with Top N
and Top K
parameter.
Based on the configuration of Chat Configuration-> Prompt Engine, Top N
means number of chunks from the retriever, Top K
which associated with Rerank model means K chunk will be sent into the rerank model.
However, from the code below, it appears that retrieved chunks numbers is min(RERANK_LIMIT = 64
, Top K
), and all retrieved chunks will be fed into rerank model?
ragflow/api/db/services/dialog_service.py
Lines 212 to 226 in b77ce4e
and here
TOP_N
was assigned to page_size, :Lines 342 to 367 in 200b6f5
similar question about retrieve_testing module:#4797