mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #12231] feat: RAG: only list sources of cited sources #16517
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 @almajo on GitHub (Mar 31, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/12231
Check Existing Issues
Problem Description
When using a knowledge base with a model, the listed sources contain all seen document (chunks). However, even with k=5 we get 15 sources that have been given to the LLM. As most of these sources are not really relevant and the LLM only cites some of them, we should not confuse the enduser with a long list of sources, that are not related to the answer.
One additional problem I faced is that with 15 sources with 1000 tokens per chunk, loading the chat becomes slow. I'm not 100% sure it's related to this but it came up together.
Desired Solution you'd like
Only sources that are referenced by the llm should come up as sources. When writing a paper I would also only cite information I used, not everything I've read.
Alternatives Considered
No response
Additional Context
No response