Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Total number of chunks returned for a query is wrong #4529

Open
1 task done
panzi opened this issue Jan 17, 2025 · 2 comments
Open
1 task done

[Bug]: Total number of chunks returned for a query is wrong #4529

panzi opened this issue Jan 17, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@panzi
Copy link
Contributor

panzi commented Jan 17, 2025

Is there an existing issue for the same bug?

  • I have checked the existing issues.

RAGFlow workspace code commit ID

1160b58

RAGFlow image version

v0.15.1-slim

Other environment information

OS type: Linux

Actual behavior

The total field returned when retrieving chunks to a query is sometimes wrong. Or at least sometimes it's much too big. For our database and a certain query it returns 1572 while in fact there are only 30 results (using a page size of 10).

Expected behavior

Return the correct number. (Or at least correct within the page size.)

Steps to reproduce

It is not reliable to reproduce. In another database we do get a correct total count (or at least a total count <= the actual total count, so there are no empty pages at the end).

Additional information

This is very bad user facing behavior, because the user will be presented with a ton of empty pages at the end.

@panzi panzi added the bug Something isn't working label Jan 17, 2025
@KevinHuSh
Copy link
Collaborator

Which part did you refer to, retrieval test or API?

@panzi
Copy link
Contributor Author

panzi commented Jan 20, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants