From 3dab13494cd0cc429e0c37e1aaa48da7bf338779 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Mon, 16 Nov 2026 07:33:17 +0100 Subject: [PATCH] fix: label knowledge bases as Knowledge Base instead of Collection (#34432) Knowledge bases are called Collection or Collections in the chat knowledge picker, the model editor knowledge selector, the knowledge base chips and their detail view, and the search box inside a knowledge base, while the rest of the app says knowledge. Collection is also the vector database term, so the two get mixed up. Those places now say Knowledge, Knowledge Base or Search Files, reusing labels that are already translated, and the tooltip on a file inside a knowledge base now says File. Relates to #34424 --- .../chat/MessageInput/Commands/AtCommands.svelte | 4 ++-- .../chat/MessageInput/Commands/Knowledge.svelte | 4 ++-- .../chat/MessageInput/InputMenu/Knowledge.svelte | 4 ++-- src/lib/components/common/FileItem.svelte | 10 +++++++--- src/lib/components/common/FileItemModal.svelte | 2 +- .../workspace/Knowledge/KnowledgeBase/Browser.svelte | 4 ++-- .../Models/Knowledge/KnowledgeSelector.svelte | 2 +- src/lib/i18n/locales/en-US/translation.json | 2 -- 8 files changed, 17 insertions(+), 15 deletions(-) diff --git a/src/lib/components/chat/MessageInput/Commands/AtCommands.svelte b/src/lib/components/chat/MessageInput/Commands/AtCommands.svelte index 487b62989b..73580a7164 100644 --- a/src/lib/components/chat/MessageInput/Commands/AtCommands.svelte +++ b/src/lib/components/chat/MessageInput/Commands/AtCommands.svelte @@ -274,7 +274,7 @@ {#if item?.type === 'folder'} {$i18n.t('Folders')} {:else if item?.type === 'collection'} - {$i18n.t('Collections')} + {$i18n.t('Knowledge')} {:else if item?.type === 'file'} {$i18n.t('Files')} {:else if item?.type === 'filesystem'} @@ -307,7 +307,7 @@ : item?.type === 'file' ? `${item?.collection?.name} > ${$i18n.t('File')}` : item?.type === 'collection' - ? $i18n.t('Collection') + ? $i18n.t('Knowledge Base') : item?.type === 'youtube' ? $i18n.t('YouTube') : item?.type === 'web' diff --git a/src/lib/components/chat/MessageInput/Commands/Knowledge.svelte b/src/lib/components/chat/MessageInput/Commands/Knowledge.svelte index 06261e7453..debfaffefd 100644 --- a/src/lib/components/chat/MessageInput/Commands/Knowledge.svelte +++ b/src/lib/components/chat/MessageInput/Commands/Knowledge.svelte @@ -177,7 +177,7 @@ {#if item?.type === 'folder'} {$i18n.t('Folders')} {:else if item?.type === 'collection'} - {$i18n.t('Collections')} + {$i18n.t('Knowledge')} {:else if item?.type === 'file'} {$i18n.t('Files')} {/if} @@ -211,7 +211,7 @@ : item?.type === 'file' ? `${item?.collection?.name} > ${$i18n.t('File')}` : item?.type === 'collection' - ? $i18n.t('Collection') + ? $i18n.t('Knowledge Base') : ''} placement="top" > diff --git a/src/lib/components/chat/MessageInput/InputMenu/Knowledge.svelte b/src/lib/components/chat/MessageInput/InputMenu/Knowledge.svelte index dfa8b92ea5..e5111a1516 100644 --- a/src/lib/components/chat/MessageInput/InputMenu/Knowledge.svelte +++ b/src/lib/components/chat/MessageInput/InputMenu/Knowledge.svelte @@ -225,7 +225,7 @@ data-selected={idx === selectedIdx} >
- + @@ -288,7 +288,7 @@ }} >
- + diff --git a/src/lib/components/common/FileItem.svelte b/src/lib/components/common/FileItem.svelte index 9900bdf68e..d7255146b8 100644 --- a/src/lib/components/common/FileItem.svelte +++ b/src/lib/components/common/FileItem.svelte @@ -112,7 +112,7 @@ {#if !loading} {type} {/if} @@ -182,7 +182,11 @@
{:else}
- {type} + {#if type === 'collection'} + {$i18n.t('Knowledge')} + {:else} + {type} + {/if}
{/if}
diff --git a/src/lib/components/common/FileItemModal.svelte b/src/lib/components/common/FileItemModal.svelte index 5b389192ce..9834343f55 100644 --- a/src/lib/components/common/FileItemModal.svelte +++ b/src/lib/components/common/FileItemModal.svelte @@ -314,7 +314,7 @@
{#if item?.type === 'collection'} {#if item?.type} -
{item.type}
+
{$i18n.t('Knowledge Base')}
• {/if} diff --git a/src/lib/components/workspace/Knowledge/KnowledgeBase/Browser.svelte b/src/lib/components/workspace/Knowledge/KnowledgeBase/Browser.svelte index 95db478bcd..1963f55ff9 100644 --- a/src/lib/components/workspace/Knowledge/KnowledgeBase/Browser.svelte +++ b/src/lib/components/workspace/Knowledge/KnowledgeBase/Browser.svelte @@ -147,8 +147,8 @@
{ diff --git a/src/lib/components/workspace/Models/Knowledge/KnowledgeSelector.svelte b/src/lib/components/workspace/Models/Knowledge/KnowledgeSelector.svelte index a76f12fc14..2391411f2b 100644 --- a/src/lib/components/workspace/Models/Knowledge/KnowledgeSelector.svelte +++ b/src/lib/components/workspace/Models/Knowledge/KnowledgeSelector.svelte @@ -165,7 +165,7 @@ {item.type === 'note' ? $i18n.t('Notes') : item.type === 'collection' - ? $i18n.t('Collections') + ? $i18n.t('Knowledge') : $i18n.t('Files')}
{/if} diff --git a/src/lib/i18n/locales/en-US/translation.json b/src/lib/i18n/locales/en-US/translation.json index 5db4754f70..3521483cde 100644 --- a/src/lib/i18n/locales/en-US/translation.json +++ b/src/lib/i18n/locales/en-US/translation.json @@ -614,7 +614,6 @@ "Collapse terminal": "", "Collection": "", "Collection Field": "", - "Collections": "", "Color": "", "ComfyUI": "", "ComfyUI Base URL is required.": "", @@ -2675,7 +2674,6 @@ "Search built-in tools": "Search built-in tools", "Search channels": "", "Search Chats": "", - "Search Collection": "", "Search file content": "", "Search Files": "", "Search files and contents": "",