mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #1294] Add the ability to return sources from RAG, score them and control which are used. #27962
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 @icsy7867 on GitHub (Mar 25, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/1294
Is your feature request related to a problem? Please describe.
I am experimenting with RAGs for my corporation. We have many different information portals (Confluence and various policy websites and information sources, PDFS, etc...). While the information being returned is accurate, I would like to include the sources at the end of each chat.
Random example, lets say I ingest: https://en.wikipedia.org/wiki/Boat and I ask for the types of boats. And the user questioning wanted to know more about this. Having source displayed would be hugely helpful.
Describe the solution you'd like
At the end of a chat that pulled information from the RAG, it would be nice to be able to enable/disabled the sources used. This could look something like:
Sources:
Boat - Wikipedia - https://en.wikipedia.org/wiki/Boat
And the link should be clickable. If a PDF or something was uploaded, then just the name of the PDF (Not clickable).
Additionally, with llamaindex (Not sure what you guys are using). There are also two settings that can be set.
https://docs.llamaindex.ai/en/latest/module_guides/querying/node_postprocessors/
For smaller deployments, it's not an issue, but once you scale to 1000+ docs ingested, then these sorts of tweaks become invaluable.
Describe alternatives you've considered
N/A
Additional context
Add any other context or screenshots about the feature request here.
@tjbck commented on GitHub (Mar 25, 2024):
Great suggestions, Let's continue our discussion here: #715 #1293