mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
issue: Citation Events not linked correctly #5929
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 @Patsch36 on GitHub (Jul 31, 2025).
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
latest
Ollama Version (if applicable)
No response
Operating System
Windows 11
Browser (if applicable)
Firefox
Confirmation
README.md.Expected Behavior
OpenWebui emits the citation events correctly and when clicking on the event badge, the right source is shown
Actual Behavior
Badges were emitted right, but only when clicking on the first badge the popup opens, on the other not.
When clicking on the first badge, all sources are listed
https://github.com/user-attachments/assets/4bebc8f6-70d4-47a0-bb26-c528f3f4584a
Steps to Reproduce
New Tool at Worspace/Tools
create the following Code:
`async def get_patent_by_context(
self, context: str, event_emitter: Callable[[dict], Any]
) -> List[dict]:
"""
Retrieve patent information based on context/user questions. The method returns the 4 most likely patents ordered from most likely to least likely.
:param context: The context to search for in the patent database.
:param event_emitter: Open WebUI event emitter for status updates.
"""
db_cfg = DBConfig(
host="localhost",
port=5432,
user="postgres",
password="postgres",
dbname="postgres",
vector_dim=1024,
embedding_model=AzureOpenAIEmbeddingModel(
"text-embedding-3-large", dimensions=1024
),
)
db = VectorDB(db_cfg)
(result from database is e.g.
[ [ "EP", "1114752", "B1", "ops.epo.org", "7627007", 0.7068290921100706, "[0002] Zumeist werden Batterieleitungen in Fahrzeugen zumindest zum Teil im\n Innenraum verlegt. Dies trifft vor allem dann zu, wenn sich die Batterie im Heck\n des Fahrzeugs befindet und der Anlasser bzw. Generator im vorderen Bereich\n angeordnet ist." ], [ "WO", "2019166148", "A1", "ops.epo.org", "65243512", 0.6923666963140184, "BATTERIEANSCHLUSS F\u00dcR FAHRZEUGBORDNETZ" ], [ "WO", "2021073977", "A1", "ops.epo.org", "72801491", 0.6666671435037728, "Fahrzeugbordnetz" ], [ "WO", "2005078891", "A1", "ops.epo.org", "34684701", 0.6621443427887179, "Vorzugsweise weist die Verbindungsleitung zwischen Batterie und dem Stromver- teiler einen Querschnitt von maximal etwa 5 mm2 bei einer Leitungsl\u00e4nge von ma- ximal 2 m, vorzugsweise 1 m auf. Bei diesen Leitungsl\u00e4ngen l\u00e4sst sich die Batterie im Motorraum des Kraftfahrzeugs anordnen, wobei ein besonders niedriger Lei- tungsquerschnitt verwendet werden kann." ], [ "WO", "2024184429", "A1", "ops.epo.org", "90364137", 0.6473367407124266, "Bordnetz f\u00fcr ein Kraftfahrzeug" ] ]Logs & Screenshots
[tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues. 11 index.js:791:13
Uncaught (in promise) TypeError: can't access property "content", oe.messages[Le.id] is undefined
Vt Chat.svelte:1009
Chat.svelte:1009:11
[tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues. 2 index.js:791:13
[tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues.
Additional Information
No response
@tjbck commented on GitHub (Jul 31, 2025):
Without proper
metadata, video recording you've included is an intended behaviour.