From bc274e73003b912eb1bf644fadbe03637162d50c Mon Sep 17 00:00:00 2001 From: yangzheli <43645580+yangzheli@users.noreply.github.com> Date: Thu, 20 Nov 2025 11:36:41 +0800 Subject: [PATCH] refactor(web): remove redundant dataset card-item components and related code (#28199) --- .../base/icons/remove-icon/index.tsx | 31 ---- .../base/icons/remove-icon/style.module.css | 0 .../dataset-config/card-item/index.tsx | 134 ++++++++++++------ .../dataset-config/card-item/item.tsx | 112 --------------- .../dataset-config/card-item/style.module.css | 22 --- .../configuration/dataset-config/index.tsx | 2 +- .../dataset-config/type-icon/index.tsx | 33 ----- web/i18n/de-DE/app-debug.ts | 2 - web/i18n/de-DE/dataset.ts | 1 - web/i18n/en-US/app-debug.ts | 2 - web/i18n/en-US/dataset.ts | 1 - web/i18n/es-ES/app-debug.ts | 2 - web/i18n/es-ES/dataset.ts | 1 - web/i18n/fa-IR/app-debug.ts | 2 - web/i18n/fa-IR/dataset.ts | 1 - web/i18n/fr-FR/app-debug.ts | 2 - web/i18n/fr-FR/dataset.ts | 1 - web/i18n/hi-IN/app-debug.ts | 2 - web/i18n/hi-IN/dataset.ts | 2 - web/i18n/id-ID/app-debug.ts | 2 - web/i18n/id-ID/dataset.ts | 1 - web/i18n/it-IT/app-debug.ts | 2 - web/i18n/it-IT/dataset.ts | 2 - web/i18n/ja-JP/app-debug.ts | 2 - web/i18n/ja-JP/dataset.ts | 1 - web/i18n/ko-KR/app-debug.ts | 2 - web/i18n/ko-KR/dataset.ts | 1 - web/i18n/pl-PL/app-debug.ts | 2 - web/i18n/pl-PL/dataset.ts | 2 - web/i18n/pt-BR/app-debug.ts | 2 - web/i18n/pt-BR/dataset.ts | 1 - web/i18n/ro-RO/app-debug.ts | 2 - web/i18n/ro-RO/dataset.ts | 1 - web/i18n/ru-RU/app-debug.ts | 2 - web/i18n/ru-RU/dataset.ts | 1 - web/i18n/sl-SI/app-debug.ts | 2 - web/i18n/sl-SI/dataset.ts | 1 - web/i18n/th-TH/app-debug.ts | 2 - web/i18n/th-TH/dataset.ts | 1 - web/i18n/tr-TR/app-debug.ts | 2 - web/i18n/tr-TR/dataset.ts | 1 - web/i18n/uk-UA/app-debug.ts | 2 - web/i18n/uk-UA/dataset.ts | 1 - web/i18n/vi-VN/app-debug.ts | 2 - web/i18n/vi-VN/dataset.ts | 1 - web/i18n/zh-Hans/app-debug.ts | 2 - web/i18n/zh-Hans/dataset.ts | 1 - web/i18n/zh-Hant/app-debug.ts | 2 - web/i18n/zh-Hant/dataset.ts | 1 - 49 files changed, 95 insertions(+), 305 deletions(-) delete mode 100644 web/app/components/app/configuration/base/icons/remove-icon/index.tsx delete mode 100644 web/app/components/app/configuration/base/icons/remove-icon/style.module.css delete mode 100644 web/app/components/app/configuration/dataset-config/card-item/item.tsx delete mode 100644 web/app/components/app/configuration/dataset-config/card-item/style.module.css delete mode 100644 web/app/components/app/configuration/dataset-config/type-icon/index.tsx diff --git a/web/app/components/app/configuration/base/icons/remove-icon/index.tsx b/web/app/components/app/configuration/base/icons/remove-icon/index.tsx deleted file mode 100644 index f4b30a9605..0000000000 --- a/web/app/components/app/configuration/base/icons/remove-icon/index.tsx +++ /dev/null @@ -1,31 +0,0 @@ -'use client' -import React, { useState } from 'react' -import cn from '@/utils/classnames' - -type IRemoveIconProps = { - className?: string - isHoverStatus?: boolean - onClick: () => void -} - -const RemoveIcon = ({ - className, - isHoverStatus, - onClick, -}: IRemoveIconProps) => { - const [isHovered, setIsHovered] = useState(false) - const computedIsHovered = isHoverStatus || isHovered - return ( -
setIsHovered(true)} - onMouseLeave={() => setIsHovered(false)} - onClick={onClick} - > - - - -
- ) -} -export default React.memo(RemoveIcon) diff --git a/web/app/components/app/configuration/base/icons/remove-icon/style.module.css b/web/app/components/app/configuration/base/icons/remove-icon/style.module.css deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/web/app/components/app/configuration/dataset-config/card-item/index.tsx b/web/app/components/app/configuration/dataset-config/card-item/index.tsx index 1220c75ed6..85d46122a3 100644 --- a/web/app/components/app/configuration/dataset-config/card-item/index.tsx +++ b/web/app/components/app/configuration/dataset-config/card-item/index.tsx @@ -1,58 +1,112 @@ 'use client' import type { FC } from 'react' -import React from 'react' +import React, { useState } from 'react' +import { + RiDeleteBinLine, + RiEditLine, +} from '@remixicon/react' import { useTranslation } from 'react-i18next' -import TypeIcon from '../type-icon' -import RemoveIcon from '../../base/icons/remove-icon' -import s from './style.module.css' -import cn from '@/utils/classnames' +import SettingsModal from '../settings-modal' import type { DataSet } from '@/models/datasets' -import { formatNumber } from '@/utils/format' -import Tooltip from '@/app/components/base/tooltip' +import ActionButton, { ActionButtonState } from '@/app/components/base/action-button' +import Drawer from '@/app/components/base/drawer' +import useBreakpoints, { MediaType } from '@/hooks/use-breakpoints' +import Badge from '@/app/components/base/badge' +import { useKnowledge } from '@/hooks/use-knowledge' +import cn from '@/utils/classnames' +import AppIcon from '@/app/components/base/app-icon' -export type ICardItemProps = { +type ItemProps = { className?: string config: DataSet onRemove: (id: string) => void readonly?: boolean + onSave: (newDataset: DataSet) => void + editable?: boolean } -const CardItem: FC = ({ - className, + +const Item: FC = ({ config, + onSave, onRemove, - readonly, + editable = true, }) => { + const media = useBreakpoints() + const isMobile = media === MediaType.mobile + const [showSettingsModal, setShowSettingsModal] = useState(false) + const { formatIndexingTechniqueAndMethod } = useKnowledge() const { t } = useTranslation() - return ( -
-
-
- -
-
-
-
{config.name}
- {!config.embedding_available && ( - - {t('dataset.unavailable')} - - )} -
-
- {formatNumber(config.word_count)} {t('appDebug.feature.dataSet.words')} · {formatNumber(config.document_count)} {t('appDebug.feature.dataSet.textBlocks')} -
-
-
+ const handleSave = (newDataset: DataSet) => { + onSave(newDataset) + setShowSettingsModal(false) + } - {!readonly && onRemove(config.id)} />} -
+ const [isDeleting, setIsDeleting] = useState(false) + + const iconInfo = config.icon_info || { + icon: '📙', + icon_type: 'emoji', + icon_background: '#FFF4ED', + icon_url: '', + } + + return ( +
+
+ +
{config.name}
+
+
+ { + editable && { + e.stopPropagation() + setShowSettingsModal(true) + }} + > + + + } + onRemove(config.id)} + state={isDeleting ? ActionButtonState.Destructive : ActionButtonState.Default} + onMouseEnter={() => setIsDeleting(true)} + onMouseLeave={() => setIsDeleting(false)} + > + + +
+ { + config.indexing_technique && + } + { + config.provider === 'external' && + } + setShowSettingsModal(false)} footer={null} mask={isMobile} panelClassName='mt-16 mx-2 sm:mr-2 mb-3 !p-0 !max-w-[640px] rounded-xl'> + setShowSettingsModal(false)} + onSave={handleSave} + /> + +
) } -export default React.memo(CardItem) + +export default Item diff --git a/web/app/components/app/configuration/dataset-config/card-item/item.tsx b/web/app/components/app/configuration/dataset-config/card-item/item.tsx deleted file mode 100644 index 85d46122a3..0000000000 --- a/web/app/components/app/configuration/dataset-config/card-item/item.tsx +++ /dev/null @@ -1,112 +0,0 @@ -'use client' -import type { FC } from 'react' -import React, { useState } from 'react' -import { - RiDeleteBinLine, - RiEditLine, -} from '@remixicon/react' -import { useTranslation } from 'react-i18next' -import SettingsModal from '../settings-modal' -import type { DataSet } from '@/models/datasets' -import ActionButton, { ActionButtonState } from '@/app/components/base/action-button' -import Drawer from '@/app/components/base/drawer' -import useBreakpoints, { MediaType } from '@/hooks/use-breakpoints' -import Badge from '@/app/components/base/badge' -import { useKnowledge } from '@/hooks/use-knowledge' -import cn from '@/utils/classnames' -import AppIcon from '@/app/components/base/app-icon' - -type ItemProps = { - className?: string - config: DataSet - onRemove: (id: string) => void - readonly?: boolean - onSave: (newDataset: DataSet) => void - editable?: boolean -} - -const Item: FC = ({ - config, - onSave, - onRemove, - editable = true, -}) => { - const media = useBreakpoints() - const isMobile = media === MediaType.mobile - const [showSettingsModal, setShowSettingsModal] = useState(false) - const { formatIndexingTechniqueAndMethod } = useKnowledge() - const { t } = useTranslation() - - const handleSave = (newDataset: DataSet) => { - onSave(newDataset) - setShowSettingsModal(false) - } - - const [isDeleting, setIsDeleting] = useState(false) - - const iconInfo = config.icon_info || { - icon: '📙', - icon_type: 'emoji', - icon_background: '#FFF4ED', - icon_url: '', - } - - return ( -
-
- -
{config.name}
-
-
- { - editable && { - e.stopPropagation() - setShowSettingsModal(true) - }} - > - - - } - onRemove(config.id)} - state={isDeleting ? ActionButtonState.Destructive : ActionButtonState.Default} - onMouseEnter={() => setIsDeleting(true)} - onMouseLeave={() => setIsDeleting(false)} - > - - -
- { - config.indexing_technique && - } - { - config.provider === 'external' && - } - setShowSettingsModal(false)} footer={null} mask={isMobile} panelClassName='mt-16 mx-2 sm:mr-2 mb-3 !p-0 !max-w-[640px] rounded-xl'> - setShowSettingsModal(false)} - onSave={handleSave} - /> - -
- ) -} - -export default Item diff --git a/web/app/components/app/configuration/dataset-config/card-item/style.module.css b/web/app/components/app/configuration/dataset-config/card-item/style.module.css deleted file mode 100644 index da07056cbc..0000000000 --- a/web/app/components/app/configuration/dataset-config/card-item/style.module.css +++ /dev/null @@ -1,22 +0,0 @@ -.card { - box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05); - width: 100%; -} - -.card:hover { - box-shadow: 0px 4px 8px -2px rgba(16, 24, 40, 0.1), 0px 2px 4px -2px rgba(16, 24, 40, 0.06); -} - -.btnWrap { - padding-left: 64px; - visibility: hidden; - background: linear-gradient(270deg, #FFF 49.99%, rgba(255, 255, 255, 0.00) 98.1%); -} - -.card:hover .btnWrap { - visibility: visible; -} - -.settingBtn:hover { - background-color: rgba(0, 0, 0, 0.05); -} diff --git a/web/app/components/app/configuration/dataset-config/index.tsx b/web/app/components/app/configuration/dataset-config/index.tsx index 489ea1207b..bf81858565 100644 --- a/web/app/components/app/configuration/dataset-config/index.tsx +++ b/web/app/components/app/configuration/dataset-config/index.tsx @@ -9,7 +9,7 @@ import { v4 as uuid4 } from 'uuid' import { useFormattingChangedDispatcher } from '../debug/hooks' import FeaturePanel from '../base/feature-panel' import OperationBtn from '../base/operation-btn' -import CardItem from './card-item/item' +import CardItem from './card-item' import ParamsConfig from './params-config' import ContextVar from './context-var' import ConfigContext from '@/context/debug-configuration' diff --git a/web/app/components/app/configuration/dataset-config/type-icon/index.tsx b/web/app/components/app/configuration/dataset-config/type-icon/index.tsx deleted file mode 100644 index 65951f662f..0000000000 --- a/web/app/components/app/configuration/dataset-config/type-icon/index.tsx +++ /dev/null @@ -1,33 +0,0 @@ -'use client' -import type { FC } from 'react' -import React from 'react' - -export type ITypeIconProps = { - type: 'upload_file' - size?: 'md' | 'lg' -} - -// data_source_type: current only support upload_file -const Icon = ({ type, size = 'lg' }: ITypeIconProps) => { - const len = size === 'lg' ? 32 : 24 - const iconMap = { - upload_file: ( - - - - - - ), - } - return iconMap[type] -} - -const TypeIcon: FC = ({ - type, - size = 'lg', -}) => { - return ( - - ) -} -export default React.memo(TypeIcon) diff --git a/web/i18n/de-DE/app-debug.ts b/web/i18n/de-DE/app-debug.ts index badf27be59..7824352ff8 100644 --- a/web/i18n/de-DE/app-debug.ts +++ b/web/i18n/de-DE/app-debug.ts @@ -105,8 +105,6 @@ const translation = { dataSet: { title: 'Kontext', noData: 'Sie können Wissen als Kontext importieren', - words: 'Wörter', - textBlocks: 'Textblöcke', selectTitle: 'Wählen Sie Referenzwissen', selected: 'Wissen ausgewählt', noDataSet: 'Kein Wissen gefunden', diff --git a/web/i18n/de-DE/dataset.ts b/web/i18n/de-DE/dataset.ts index 0b9d08a984..143ee55d78 100644 --- a/web/i18n/de-DE/dataset.ts +++ b/web/i18n/de-DE/dataset.ts @@ -19,7 +19,6 @@ const translation = { intro5: 'kann erstellt werden', intro6: ' als ein eigenständiges ChatGPT-Index-Plugin zum Veröffentlichen', unavailable: 'Nicht verfügbar', - unavailableTip: 'Einbettungsmodell ist nicht verfügbar, das Standard-Einbettungsmodell muss konfiguriert werden', datasets: 'WISSEN', datasetsApi: 'API', retrieval: { diff --git a/web/i18n/en-US/app-debug.ts b/web/i18n/en-US/app-debug.ts index 9d1a824a88..815c6d9aeb 100644 --- a/web/i18n/en-US/app-debug.ts +++ b/web/i18n/en-US/app-debug.ts @@ -105,8 +105,6 @@ const translation = { dataSet: { title: 'Knowledge', noData: 'You can import Knowledge as context', - words: 'Words', - textBlocks: 'Text Blocks', selectTitle: 'Select reference Knowledge', selected: 'Knowledge selected', noDataSet: 'No Knowledge found', diff --git a/web/i18n/en-US/dataset.ts b/web/i18n/en-US/dataset.ts index b89a1fbd34..985e144826 100644 --- a/web/i18n/en-US/dataset.ts +++ b/web/i18n/en-US/dataset.ts @@ -93,7 +93,6 @@ const translation = { intro5: 'can be published', intro6: ' as an independent service.', unavailable: 'Unavailable', - unavailableTip: 'Embedding model is not available, the default embedding model needs to be configured', datasets: 'KNOWLEDGE', datasetsApi: 'API ACCESS', externalKnowledgeForm: { diff --git a/web/i18n/es-ES/app-debug.ts b/web/i18n/es-ES/app-debug.ts index 76aa28d03f..175272d53a 100644 --- a/web/i18n/es-ES/app-debug.ts +++ b/web/i18n/es-ES/app-debug.ts @@ -105,8 +105,6 @@ const translation = { dataSet: { title: 'Contexto', noData: 'Puedes importar Conocimiento como contexto', - words: 'Palabras', - textBlocks: 'Bloques de Texto', selectTitle: 'Seleccionar Conocimiento de referencia', selected: 'Conocimiento seleccionado', noDataSet: 'No se encontró Conocimiento', diff --git a/web/i18n/es-ES/dataset.ts b/web/i18n/es-ES/dataset.ts index 4fbdae1239..b647d12ac8 100644 --- a/web/i18n/es-ES/dataset.ts +++ b/web/i18n/es-ES/dataset.ts @@ -19,7 +19,6 @@ const translation = { intro5: 'se puede crear', intro6: ' como un complemento independiente de ChatGPT para publicar', unavailable: 'No disponible', - unavailableTip: 'El modelo de incrustación no está disponible, es necesario configurar el modelo de incrustación predeterminado', datasets: 'CONOCIMIENTO', datasetsApi: 'ACCESO A LA API', retrieval: { diff --git a/web/i18n/fa-IR/app-debug.ts b/web/i18n/fa-IR/app-debug.ts index 857dee9418..5cc6840e3d 100644 --- a/web/i18n/fa-IR/app-debug.ts +++ b/web/i18n/fa-IR/app-debug.ts @@ -105,8 +105,6 @@ const translation = { dataSet: { title: 'زمینه', noData: 'شما می‌توانید دانش را به عنوان زمینه وارد کنید', - words: 'کلمات', - textBlocks: 'بلوک‌های متن', selectTitle: 'انتخاب دانش مرجع', selected: 'دانش انتخاب شده', noDataSet: 'هیچ دانشی یافت نشد', diff --git a/web/i18n/fa-IR/dataset.ts b/web/i18n/fa-IR/dataset.ts index f0c1a69044..aa8b046679 100644 --- a/web/i18n/fa-IR/dataset.ts +++ b/web/i18n/fa-IR/dataset.ts @@ -19,7 +19,6 @@ const translation = { intro5: 'به عنوان یک افزونه مستقل ChatGPT برای انتشار', intro6: 'ایجاد شود', unavailable: 'در دسترس نیست', - unavailableTip: 'مدل جاسازی در دسترس نیست، نیاز است مدل جاسازی پیش‌فرض پیکربندی شود', datasets: 'دانش', datasetsApi: 'دسترسی API', retrieval: { diff --git a/web/i18n/fr-FR/app-debug.ts b/web/i18n/fr-FR/app-debug.ts index ca894192dc..b436d27386 100644 --- a/web/i18n/fr-FR/app-debug.ts +++ b/web/i18n/fr-FR/app-debug.ts @@ -105,8 +105,6 @@ const translation = { dataSet: { title: 'Contexte', noData: 'Vous pouvez importer des Connaissances comme contexte', - words: 'Mots', - textBlocks: 'Blocs de texte', selectTitle: 'Sélectionnez la connaissance de référence', selected: 'Connaissance sélectionnée', noDataSet: 'Aucune connaissance trouvée', diff --git a/web/i18n/fr-FR/dataset.ts b/web/i18n/fr-FR/dataset.ts index 2a18ae9f6b..296cf5c17d 100644 --- a/web/i18n/fr-FR/dataset.ts +++ b/web/i18n/fr-FR/dataset.ts @@ -19,7 +19,6 @@ const translation = { intro5: 'peut être créé', intro6: 'comme un plug-in d\'index ChatGPT autonome à publier', unavailable: 'Indisponible', - unavailableTip: 'Le modèle d\'embedding n\'est pas disponible, le modèle d\'embedding par défaut doit être configuré', datasets: 'CONNAISSANCE', datasetsApi: 'API', retrieval: { diff --git a/web/i18n/hi-IN/app-debug.ts b/web/i18n/hi-IN/app-debug.ts index 4d2b006856..03b966db99 100644 --- a/web/i18n/hi-IN/app-debug.ts +++ b/web/i18n/hi-IN/app-debug.ts @@ -117,8 +117,6 @@ const translation = { dataSet: { title: 'प्रसंग', noData: 'आप संदर्भ के रूप में ज्ञान आयात कर सकते हैं', - words: 'शब्द', - textBlocks: 'पाठ खंड', selectTitle: 'संदर्भ ज्ञान का चयन करें', selected: 'ज्ञान चुना गया', noDataSet: 'कोई ज्ञान नहीं मिला', diff --git a/web/i18n/hi-IN/dataset.ts b/web/i18n/hi-IN/dataset.ts index fa1948c497..c2aca3a914 100644 --- a/web/i18n/hi-IN/dataset.ts +++ b/web/i18n/hi-IN/dataset.ts @@ -21,8 +21,6 @@ const translation = { intro6: ' एक स्वतंत्र ChatGPT इंडेक्स प्लग-इन के रूप में प्रकाशित करने के लिए', unavailable: 'उपलब्ध नहीं', - unavailableTip: - 'एम्बेडिंग मॉडल उपलब्ध नहीं है, डिफ़ॉल्ट एम्बेडिंग मॉडल को कॉन्फ़िगर किया जाना चाहिए', datasets: 'ज्ञान', datasetsApi: 'API पहुँच', retrieval: { diff --git a/web/i18n/id-ID/app-debug.ts b/web/i18n/id-ID/app-debug.ts index 8838fd13a9..3806b7adb3 100644 --- a/web/i18n/id-ID/app-debug.ts +++ b/web/i18n/id-ID/app-debug.ts @@ -115,9 +115,7 @@ const translation = { noVarTip: 'silakan buat variabel di bawah bagian Variabel', }, notSupportSelectMulti: 'Saat ini hanya mendukung satu Pengetahuan', - textBlocks: 'Blok Teks', selectTitle: 'Pilih referensi Pengetahuan', - words: 'Kata', toCreate: 'Pergi ke membuat', noDataSet: 'Tidak ada Pengetahuan yang ditemukan', noData: 'Anda dapat mengimpor Pengetahuan sebagai konteks', diff --git a/web/i18n/id-ID/dataset.ts b/web/i18n/id-ID/dataset.ts index 4c41fb0942..9bf6e1c46a 100644 --- a/web/i18n/id-ID/dataset.ts +++ b/web/i18n/id-ID/dataset.ts @@ -210,7 +210,6 @@ const translation = { allExternalTip: 'Saat hanya menggunakan pengetahuan eksternal, pengguna dapat memilih apakah akan mengaktifkan model Rerank. Jika tidak diaktifkan, potongan yang diambil akan diurutkan berdasarkan skor. Ketika strategi pengambilan dari basis pengetahuan yang berbeda tidak konsisten, itu akan menjadi tidak akurat.', datasetUsedByApp: 'Pengetahuan tersebut digunakan oleh beberapa aplikasi. Aplikasi tidak akan lagi dapat menggunakan Pengetahuan ini, dan semua konfigurasi prompt serta log akan dihapus secara permanen.', mixtureInternalAndExternalTip: 'Model Rerank diperlukan untuk campuran pengetahuan internal dan eksternal.', - unavailableTip: 'Model penyematan tidak tersedia, model penyematan default perlu dikonfigurasi', nTo1RetrievalLegacy: 'Pengambilan N-to-1 akan secara resmi tidak digunakan lagi mulai September. Disarankan untuk menggunakan pengambilan Multi-jalur terbaru untuk mendapatkan hasil yang lebih baik.', inconsistentEmbeddingModelTip: 'Model Rerank diperlukan jika model Penyematan dari basis pengetahuan yang dipilih tidak konsisten.', allKnowledgeDescription: 'Pilih untuk menampilkan semua pengetahuan di ruang kerja ini. Hanya Pemilik Ruang Kerja yang dapat mengelola semua pengetahuan.', diff --git a/web/i18n/it-IT/app-debug.ts b/web/i18n/it-IT/app-debug.ts index 02680a8bae..baa58098dd 100644 --- a/web/i18n/it-IT/app-debug.ts +++ b/web/i18n/it-IT/app-debug.ts @@ -116,8 +116,6 @@ const translation = { dataSet: { title: 'Contesto', noData: 'Puoi importare Conoscenza come contesto', - words: 'Parole', - textBlocks: 'Blocchi di testo', selectTitle: 'Seleziona Conoscenza di riferimento', selected: 'Conoscenza selezionata', noDataSet: 'Nessuna Conoscenza trovata', diff --git a/web/i18n/it-IT/dataset.ts b/web/i18n/it-IT/dataset.ts index 7489034e53..bc0396df30 100644 --- a/web/i18n/it-IT/dataset.ts +++ b/web/i18n/it-IT/dataset.ts @@ -21,8 +21,6 @@ const translation = { intro5: 'può essere creata', intro6: ' come un plug-in di indicizzazione ChatGPT autonomo da pubblicare', unavailable: 'Non disponibile', - unavailableTip: - 'Il modello di embedding non è disponibile, è necessario configurare il modello di embedding predefinito', datasets: 'CONOSCENZA', datasetsApi: 'ACCESSO API', retrieval: { diff --git a/web/i18n/ja-JP/app-debug.ts b/web/i18n/ja-JP/app-debug.ts index f15119a5f5..77d991974f 100644 --- a/web/i18n/ja-JP/app-debug.ts +++ b/web/i18n/ja-JP/app-debug.ts @@ -105,8 +105,6 @@ const translation = { dataSet: { title: 'コンテキスト', noData: 'コンテキストとして知識をインポートできます', - words: '単語', - textBlocks: 'テキストブロック', selectTitle: '参照する知識を選択', selected: '選択された知識', noDataSet: '知識が見つかりません', diff --git a/web/i18n/ja-JP/dataset.ts b/web/i18n/ja-JP/dataset.ts index 02afcd453a..3eb0d8b7ea 100644 --- a/web/i18n/ja-JP/dataset.ts +++ b/web/i18n/ja-JP/dataset.ts @@ -90,7 +90,6 @@ const translation = { intro5: '公開することができます', intro6: '独立したサービスとして', unavailable: '利用不可', - unavailableTip: '埋め込みモデルが利用できません。デフォルトの埋め込みモデルを設定する必要があります', datasets: 'ナレッジベース', datasetsApi: 'API ACCESS', externalKnowledgeForm: { diff --git a/web/i18n/ko-KR/app-debug.ts b/web/i18n/ko-KR/app-debug.ts index 0cd074a70f..68cbb6c345 100644 --- a/web/i18n/ko-KR/app-debug.ts +++ b/web/i18n/ko-KR/app-debug.ts @@ -105,8 +105,6 @@ const translation = { dataSet: { title: '컨텍스트', noData: '지식을 컨텍스트로 가져올 수 있습니다', - words: '단어', - textBlocks: '텍스트 블록', selectTitle: '참조할 지식 선택', selected: '선택한 지식', noDataSet: '지식이 없습니다', diff --git a/web/i18n/ko-KR/dataset.ts b/web/i18n/ko-KR/dataset.ts index 7f6153f968..a795aebcfc 100644 --- a/web/i18n/ko-KR/dataset.ts +++ b/web/i18n/ko-KR/dataset.ts @@ -18,7 +18,6 @@ const translation = { intro5: '이처럼', intro6: ' 독립적인 ChatGPT 인덱스 플러그인으로 공개할 수 있습니다', unavailable: '사용 불가', - unavailableTip: '임베딩 모델을 사용할 수 없습니다. 기본 임베딩 모델을 설정해야 합니다.', datasets: '지식', datasetsApi: 'API', retrieval: { diff --git a/web/i18n/pl-PL/app-debug.ts b/web/i18n/pl-PL/app-debug.ts index ab4b0a06b0..d38f5dd967 100644 --- a/web/i18n/pl-PL/app-debug.ts +++ b/web/i18n/pl-PL/app-debug.ts @@ -114,8 +114,6 @@ const translation = { dataSet: { title: 'Kontekst', noData: 'Możesz importować wiedzę jako kontekst', - words: 'Słowa', - textBlocks: 'Bloki tekstu', selectTitle: 'Wybierz odniesienie do wiedzy', selected: 'Wiedza wybrana', noDataSet: 'Nie znaleziono wiedzy', diff --git a/web/i18n/pl-PL/dataset.ts b/web/i18n/pl-PL/dataset.ts index 5c1d3630e9..2b9ab68f7d 100644 --- a/web/i18n/pl-PL/dataset.ts +++ b/web/i18n/pl-PL/dataset.ts @@ -20,8 +20,6 @@ const translation = { intro5: 'może być utworzona', intro6: ' jako samodzielny wtyczka indeksująca ChatGPT do publikacji', unavailable: 'Niedostępny', - unavailableTip: - 'Model osadzający jest niedostępny, domyślny model osadzający musi być skonfigurowany', datasets: 'WIEDZA', datasetsApi: 'DOSTĘP DO API', retrieval: { diff --git a/web/i18n/pt-BR/app-debug.ts b/web/i18n/pt-BR/app-debug.ts index 1efec540df..26194863a7 100644 --- a/web/i18n/pt-BR/app-debug.ts +++ b/web/i18n/pt-BR/app-debug.ts @@ -105,8 +105,6 @@ const translation = { dataSet: { title: 'Contexto', noData: 'Você pode importar Conhecimento como contexto', - words: 'Palavras', - textBlocks: 'Blocos de Texto', selectTitle: 'Selecionar Conhecimento de referência', selected: 'Conhecimento selecionado', noDataSet: 'Nenhum Conhecimento encontrado', diff --git a/web/i18n/pt-BR/dataset.ts b/web/i18n/pt-BR/dataset.ts index 0983eddcf6..894e65a888 100644 --- a/web/i18n/pt-BR/dataset.ts +++ b/web/i18n/pt-BR/dataset.ts @@ -18,7 +18,6 @@ const translation = { intro4: 'ou pode ser criado', intro5: ' como um plug-in de índice ChatGPT independente para publicação', unavailable: 'Indisponível', - unavailableTip: 'O modelo de incorporação não está disponível, o modelo de incorporação padrão precisa ser configurado', datasets: 'CONHECIMENTO', datasetsApi: 'API', retrieval: { diff --git a/web/i18n/ro-RO/app-debug.ts b/web/i18n/ro-RO/app-debug.ts index fff56403a3..aacbcc4b63 100644 --- a/web/i18n/ro-RO/app-debug.ts +++ b/web/i18n/ro-RO/app-debug.ts @@ -105,8 +105,6 @@ const translation = { dataSet: { title: 'Context', noData: 'Puteți importa Cunoștințe ca context', - words: 'Cuvinte', - textBlocks: 'Blocuri de text', selectTitle: 'Selectați Cunoștințe de referință', selected: 'Cunoștințe selectate', noDataSet: 'Nu s-au găsit Cunoștințe', diff --git a/web/i18n/ro-RO/dataset.ts b/web/i18n/ro-RO/dataset.ts index 29efbd10fc..7c8f29aefe 100644 --- a/web/i18n/ro-RO/dataset.ts +++ b/web/i18n/ro-RO/dataset.ts @@ -19,7 +19,6 @@ const translation = { intro5: 'pot fi create', intro6: ' ca un plug-in index ChatGPT standalone pentru publicare', unavailable: 'Indisponibil', - unavailableTip: 'Modelul de încorporare nu este disponibil, modelul de încorporare implicit trebuie configurat', datasets: 'CUNOȘTINȚE', datasetsApi: 'ACCES API', retrieval: { diff --git a/web/i18n/ru-RU/app-debug.ts b/web/i18n/ru-RU/app-debug.ts index 8d00994bef..010a2039f5 100644 --- a/web/i18n/ru-RU/app-debug.ts +++ b/web/i18n/ru-RU/app-debug.ts @@ -105,8 +105,6 @@ const translation = { dataSet: { title: 'Контекст', noData: 'Вы можете импортировать знания в качестве контекста', - words: 'Слова', - textBlocks: 'Текстовые блоки', selectTitle: 'Выберите справочные знания', selected: 'Знания выбраны', noDataSet: 'Знания не найдены', diff --git a/web/i18n/ru-RU/dataset.ts b/web/i18n/ru-RU/dataset.ts index 1b8c8d4c31..14a636d5a6 100644 --- a/web/i18n/ru-RU/dataset.ts +++ b/web/i18n/ru-RU/dataset.ts @@ -19,7 +19,6 @@ const translation = { intro5: 'можно создать', intro6: ' как отдельный плагин индекса ChatGPT для публикации', unavailable: 'Недоступно', - unavailableTip: 'Модель встраивания недоступна, необходимо настроить модель встраивания по умолчанию', datasets: 'БАЗЫ ЗНАНИЙ', datasetsApi: 'ДОСТУП К API', retrieval: { diff --git a/web/i18n/sl-SI/app-debug.ts b/web/i18n/sl-SI/app-debug.ts index 6642d79104..9ecb93828c 100644 --- a/web/i18n/sl-SI/app-debug.ts +++ b/web/i18n/sl-SI/app-debug.ts @@ -105,8 +105,6 @@ const translation = { dataSet: { title: 'Kontekst', noData: 'Uvozi znanje kot kontekst', - words: 'Besede', - textBlocks: 'Bloki besedila', selectTitle: 'Izberi referenčno znanje', selected: 'Izbrano znanje', noDataSet: 'Znanje ni bilo najdeno', diff --git a/web/i18n/sl-SI/dataset.ts b/web/i18n/sl-SI/dataset.ts index cc84adf851..0b383674e7 100644 --- a/web/i18n/sl-SI/dataset.ts +++ b/web/i18n/sl-SI/dataset.ts @@ -75,7 +75,6 @@ const translation = { intro5: 'se lahko ustvari', intro6: ' kot samostojni vtičnik ChatGPT za objavo', unavailable: 'Ni na voljo', - unavailableTip: 'Vdelani model ni na voljo, potrebno je konfigurirati privzeti vdelani model', datasets: 'ZNANJE', datasetsApi: 'API DOSTOP', externalKnowledgeForm: { diff --git a/web/i18n/th-TH/app-debug.ts b/web/i18n/th-TH/app-debug.ts index 00704e76f5..19f350961b 100644 --- a/web/i18n/th-TH/app-debug.ts +++ b/web/i18n/th-TH/app-debug.ts @@ -104,8 +104,6 @@ const translation = { selected: 'เลือกความรู้', title: 'ความรู้', toCreate: 'ไปที่สร้าง', - words: 'นิรุกติ', - textBlocks: 'บล็อกข้อความ', noData: 'คุณสามารถนําเข้าความรู้เป็นบริบทได้', selectTitle: 'เลือกข้อมูลอ้างอิง ความรู้', }, diff --git a/web/i18n/th-TH/dataset.ts b/web/i18n/th-TH/dataset.ts index 58ddf8ba8e..7c919aa4d7 100644 --- a/web/i18n/th-TH/dataset.ts +++ b/web/i18n/th-TH/dataset.ts @@ -74,7 +74,6 @@ const translation = { intro5: 'สามารถสร้างได้', intro6: 'เป็นปลั๊กอินดัชนี ChatGPT แบบสแตนด์อโลนเพื่อเผยแพร่', unavailable: 'ไม่', - unavailableTip: 'โมเดลการฝังไม่พร้อมใช้งาน จําเป็นต้องกําหนดค่าโมเดลการฝังเริ่มต้น', datasets: 'ความรู้', datasetsApi: 'การเข้าถึง API', externalKnowledgeForm: { diff --git a/web/i18n/tr-TR/app-debug.ts b/web/i18n/tr-TR/app-debug.ts index d8ebc3d2df..6ae6ef4d98 100644 --- a/web/i18n/tr-TR/app-debug.ts +++ b/web/i18n/tr-TR/app-debug.ts @@ -105,8 +105,6 @@ const translation = { dataSet: { title: 'Bağlam', noData: 'Bağlam olarak Bilgi\'yi içe aktarabilirsiniz', - words: 'Kelimeler', - textBlocks: 'Metin Blokları', selectTitle: 'Referans Bilgi\'yi seçin', selected: 'Bilgi seçildi', noDataSet: 'Bilgi bulunamadı', diff --git a/web/i18n/tr-TR/dataset.ts b/web/i18n/tr-TR/dataset.ts index e290dfe711..1babb89442 100644 --- a/web/i18n/tr-TR/dataset.ts +++ b/web/i18n/tr-TR/dataset.ts @@ -19,7 +19,6 @@ const translation = { intro5: 'bağımsız bir ChatGPT dizin eklentisi olarak oluşturulabilir', intro6: ' ve yayınlanabilir.', unavailable: 'Kullanılamıyor', - unavailableTip: 'Yerleştirme modeli mevcut değil, varsayılan yerleştirme modelinin yapılandırılması gerekiyor', datasets: 'BİLGİ', datasetsApi: 'API ERİŞİMİ', retrieval: { diff --git a/web/i18n/uk-UA/app-debug.ts b/web/i18n/uk-UA/app-debug.ts index 87b35168eb..212a6ca2a9 100644 --- a/web/i18n/uk-UA/app-debug.ts +++ b/web/i18n/uk-UA/app-debug.ts @@ -105,8 +105,6 @@ const translation = { dataSet: { title: 'Контекст', // Context noData: 'Ви можете імпортувати знання як контекст', // You can import Knowledge as context - words: 'Слова', // Words - textBlocks: 'Текстові блоки', // Text Blocks selectTitle: 'Виберіть довідкові знання', // Select reference Knowledge selected: 'Знання обрані', // Knowledge selected noDataSet: 'Знання не знайдені', // No Knowledge found diff --git a/web/i18n/uk-UA/dataset.ts b/web/i18n/uk-UA/dataset.ts index 61972ac565..b33f5c86e8 100644 --- a/web/i18n/uk-UA/dataset.ts +++ b/web/i18n/uk-UA/dataset.ts @@ -20,7 +20,6 @@ const translation = { intro5: 'можна створити', intro6: ' як автономний плагін індексу ChatGPT для публікації', unavailable: 'Недоступно', - unavailableTip: 'Модель вбудовування недоступна, необхідно налаштувати модель вбудовування за замовчуванням', datasets: 'ЗНАННЯ', datasetsApi: 'API', retrieval: { diff --git a/web/i18n/vi-VN/app-debug.ts b/web/i18n/vi-VN/app-debug.ts index 9e71899b86..6ea4e428c2 100644 --- a/web/i18n/vi-VN/app-debug.ts +++ b/web/i18n/vi-VN/app-debug.ts @@ -105,8 +105,6 @@ const translation = { dataSet: { title: 'Ngữ cảnh', noData: 'Bạn có thể nhập dữ liệu làm ngữ cảnh', - words: 'Từ', - textBlocks: 'Khối văn bản', selectTitle: 'Chọn kiến thức tham khảo', selected: 'Kiến thức đã chọn', noDataSet: 'Không tìm thấy kiến thức', diff --git a/web/i18n/vi-VN/dataset.ts b/web/i18n/vi-VN/dataset.ts index e5ffd5b61b..3f0f43571b 100644 --- a/web/i18n/vi-VN/dataset.ts +++ b/web/i18n/vi-VN/dataset.ts @@ -19,7 +19,6 @@ const translation = { intro5: 'có thể được tạo', intro6: ' dưới dạng một plugin chỉ mục ChatGPT độc lập để xuất bản', unavailable: 'Không khả dụng', - unavailableTip: 'Mô hình nhúng không khả dụng, cần cấu hình mô hình nhúng mặc định', datasets: 'BỘ KIẾN THỨC', datasetsApi: 'API', retrieval: { diff --git a/web/i18n/zh-Hans/app-debug.ts b/web/i18n/zh-Hans/app-debug.ts index a0759e9b8c..33f563af99 100644 --- a/web/i18n/zh-Hans/app-debug.ts +++ b/web/i18n/zh-Hans/app-debug.ts @@ -105,8 +105,6 @@ const translation = { dataSet: { title: '知识库', noData: '您可以导入知识库作为上下文', - words: '词', - textBlocks: '文本块', selectTitle: '选择引用知识库', selected: '个知识库被选中', noDataSet: '未找到知识库', diff --git a/web/i18n/zh-Hans/dataset.ts b/web/i18n/zh-Hans/dataset.ts index 69a92b5529..710f737933 100644 --- a/web/i18n/zh-Hans/dataset.ts +++ b/web/i18n/zh-Hans/dataset.ts @@ -93,7 +93,6 @@ const translation = { intro5: '发布', intro6: '为独立的服务', unavailable: '不可用', - unavailableTip: '由于 embedding 模型不可用,需要配置默认 embedding 模型', datasets: '知识库', datasetsApi: 'API', externalKnowledgeForm: { diff --git a/web/i18n/zh-Hant/app-debug.ts b/web/i18n/zh-Hant/app-debug.ts index ff3e131e89..aa636e424d 100644 --- a/web/i18n/zh-Hant/app-debug.ts +++ b/web/i18n/zh-Hant/app-debug.ts @@ -105,8 +105,6 @@ const translation = { dataSet: { title: '上下文', noData: '您可以匯入知識庫作為上下文', - words: '詞', - textBlocks: '文字塊', selectTitle: '選擇引用知識庫', selected: '個知識庫被選中', noDataSet: '未找到知識庫', diff --git a/web/i18n/zh-Hant/dataset.ts b/web/i18n/zh-Hant/dataset.ts index 80ec728d56..fb295ad27a 100644 --- a/web/i18n/zh-Hant/dataset.ts +++ b/web/i18n/zh-Hant/dataset.ts @@ -19,7 +19,6 @@ const translation = { intro5: '建立', intro6: '為獨立的 ChatGPT 外掛釋出使用', unavailable: '不可用', - unavailableTip: '由於 embedding 模型不可用,需要配置預設 embedding 模型', datasets: '知識庫', datasetsApi: 'API', retrieval: {