ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Question]: Retrieval Testing Fails with 10 Items per Page but Works with 100 - Pagination Affects Search Results Accuracy

Open decaMinCow opened this issue 9 months ago • 1 comments

Self Checks

  • [x] I have searched for existing issues search for existing issues, including closed ones.
  • [x] I confirm that I am using English to submit this report (Language Policy).
  • [x] Non-english title submitions will be closed directly ( 非英文标题的提交将会被直接关闭 ) (Language Policy).
  • [x] Please do not modify this template :) and fill in all the required fields.

Describe your problem

Describe the bug When pagination is set to 10 items per page, retrieval testing cannot find expected results. However, when increasing to 100 items per page, the desired result appears as the first entry.

To Reproduce Steps to reproduce the behavior:

  1. Set pagination to 10 items/page
  2. Execute search query [XXXXXX]
  3. Observe zero results returned
  4. Change pagination to 100 items/page
  5. Repeat same query
  6. Expected result appears as top match

Expected behavior Consistent search results regardless of pagination settings. The target result should be retrievable with default page size (10 items).

Possible causes

  • Pagination offset calculation error in backend
  • Search ranking affected by page boundaries
  • Caching mechanism interfering with partial results

decaMinCow avatar Mar 16 '25 13:03 decaMinCow

It's caused by rerank boundary.

KevinHuSh avatar Mar 17 '25 05:03 KevinHuSh

似乎引入了新的问题,在前端点击 1条/1页,在点击第2页的时候没有返回结果

pcpengchang avatar Mar 19 '25 09:03 pcpengchang

I did not reproduce that.

Image

KevinHuSh avatar Mar 19 '25 10:03 KevinHuSh

Personally, I don't consider this a bug, because the search results with higher scores still rank at the top. The differences in search results do not affect the search effectiveness. What do you think

txygjx avatar Sep 07 '25 11:09 txygjx