mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[GH-ISSUE #12811] issue: Web search results *once again* all get source id=1 #16719
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 @Ithanil on GitHub (Apr 13, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/12811
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
0.6.4
Ollama Version (if applicable)
No response
Operating System
Debian 12
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
One source id per result page.
Actual Behavior
Same source id for all results.
Steps to Reproduce
Execute web search with embedding&retrieval or without, look at the source ids in the content sent to LLM.
Logs & Screenshots
Additional Information
This was fixed by https://github.com/open-webui/open-webui/pull/12506 and https://github.com/open-webui/open-webui/pull/12507 in 0.6.2 and is now broken again in 0.6.4 due to https://github.com/open-webui/open-webui/pull/12562 , despite my comments and request to check for it.
Reverting https://github.com/open-webui/open-webui/pull/12562 fixes the issue for web search, but of course then source ids will be broken again for knowledge bases.
@almajo commented on GitHub (Apr 14, 2025):
Too bad fix #12562 for RAG broke Web Search citations again. As listed in the PR, I haven't tested this route tbh because I never use it and didn't think it would impact web search.
Before going back and forth on this, I would really recommend using identifiers for llm citations instead of numbers. Something like the first 6 letters of the file_id for example. This would make citations way more obvious to handle, be it tools, web search or rag search. Additionally, we would be able to implement something for https://github.com/open-webui/open-webui/discussions/12247 . This is basically impossible to nicely fix without clear identifiers that don't rely on an order or the full source list.
@Ithanil commented on GitHub (May 5, 2025):
fixed in v0.6.6