mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[GH-ISSUE #10187] RAG: result duplicates #31330
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mkhludnev on GitHub (Feb 17, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/10187
Discussed in https://github.com/open-webui/open-webui/discussions/10168
Originally posted by mkhludnev February 17, 2025
it's loosely related #8379.
When a several queries generated by the task. We get a result list per each of them. It's obvious that there are documents occurring in a few of the lists, then
merge_and_sort_query_resultsdoesn't does not deduplicate results, and we've got repeating docs in RAG context, beside of wasting LLM contexts with useless repetition, it might trigger repetition in the output.Why don't drop duplicates in
merge_and_sort_query_results?May I come up with PR for it?
@tjbck commented on GitHub (Feb 17, 2025):
PR Welcome!