mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-12 03:48:33 +00:00
fix: external knowledge citations show the page address instead of the page title (#32232)
Citations from external knowledge bases (Qdrant, Milvus, pgvector) whose source is a web address showed that full address in the source list below the answer, while the numbered citation markers in the answer text already showed the page title. The source list now shows the same title. Because of that, these citations no longer add a site icon to the sources button, which matches regular knowledge bases. Web search results keep showing their address. Fixes https://github.com/open-webui/open-webui/issues/32231
This commit is contained in:
parent
ee1d9255fc
commit
ca3a6cf26f
1 changed files with 1 additions and 1 deletions
|
|
@ -124,7 +124,7 @@
|
|||
}
|
||||
|
||||
if (id.startsWith('http://') || id.startsWith('https://')) {
|
||||
_source = { ..._source, name: id, url: id };
|
||||
_source = { ..._source, name: metadata?.external ? _source.name : id, url: id };
|
||||
}
|
||||
|
||||
const existingSource = acc.find((item) => item.id === id);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue