Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
refactor(web): remove redundant dataset card-item components and related code (#28199)
yangzhelibc274e73003b
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.tsxdeleted file mode 100644index f4b30a96050..00000000000--- 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 (- <div- className={cn(className, computedIsHovered && 'bg-[#FEE4E2]', 'flex h-6 w-6 cursor-pointer items-center justify-center rounded-md hover:bg-[#FEE4E2]')}- onMouseEnter={() => setIsHovered(true)}- onMouseLeave={() => setIsHovered(false)}- onClick={onClick}- >- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">- <path d="M10 6H14M6 8H18M16.6667 8L16.1991 15.0129C16.129 16.065 16.0939 16.5911 15.8667 16.99C15.6666 17.3412 15.3648 17.6235 15.0011 17.7998C14.588 18 14.0607 18 13.0062 18H10.9938C9.93927 18 9.41202 18 8.99889 17.7998C8.63517 17.6235 8.33339 17.3412 8.13332 16.99C7.90607 16.5911 7.871 16.065 7.80086 15.0129L7.33333 8M10.6667 11V14.3333M13.3333 11V14.3333" stroke={computedIsHovered ? '#D92D20' : '#667085'} strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />- </svg>- </div>- )-}-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.cssdeleted file mode 100644index e69de29bb2d..00000000000diff --git a/web/app/components/app/configuration/dataset-config/card-item/index.tsx b/web/app/components/app/configuration/dataset-config/card-item/index.tsxindex 1220c75ed62..85d46122a37 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?: stringconfig: DataSetonRemove: (id: string) => voidreadonly?: boolean+ onSave: (newDataset: DataSet) => void+ editable?: boolean}-const CardItem: FC<ICardItemProps> = ({- className,++const Item: FC<ItemProps> = ({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()+ 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 (- <div- className={- cn(className, s.card,- 'relative flex cursor-pointer items-center rounded-xl border border-gray-200 bg-white px-3 py-2.5')- }>- <div className='flex items-center space-x-2'>- <div className={cn(!config.embedding_available && 'opacity-50')}>- <TypeIcon type="upload_file" />- </div>- <div>- <div className='mr-1 flex w-[160px] items-center'>- <div className={cn('overflow-hidden text-ellipsis whitespace-nowrap text-[13px] font-medium leading-[18px] text-gray-800', !config.embedding_available && 'opacity-50')}>{config.name}</div>- {!config.embedding_available && (- <Tooltip- popupContent={t('dataset.unavailableTip')}- >- <span className='inline-flex shrink-0 whitespace-nowrap rounded-md border border-gray-200 px-1 text-xs font-normal leading-[18px] text-gray-500'>{t('dataset.unavailable')}</span>- </Tooltip>- )}- </div>- <div className={cn('flex max-w-[150px] text-xs text-gray-500', !config.embedding_available && 'opacity-50')}>- {formatNumber(config.word_count)} {t('appDebug.feature.dataSet.words')} · {formatNumber(config.document_count)} {t('appDebug.feature.dataSet.textBlocks')}- </div>- </div>+ <div className={cn(+ 'group relative mb-1 flex h-10 w-full cursor-pointer items-center justify-between rounded-lg border-[0.5px] border-components-panel-border-subtle bg-components-panel-on-panel-item-bg px-2 last-of-type:mb-0 hover:bg-components-panel-on-panel-item-bg-hover',+ isDeleting && 'border-state-destructive-border hover:bg-state-destructive-hover',+ )}>+ <div className='flex w-0 grow items-center space-x-1.5'>+ <AppIcon+ size='tiny'+ iconType={iconInfo.icon_type}+ icon={iconInfo.icon}+ background={iconInfo.icon_type === 'image' ? undefined : iconInfo.icon_background}+ imageUrl={iconInfo.icon_type === 'image' ? iconInfo.icon_url : undefined}+ />+ <div className='system-sm-medium w-0 grow truncate text-text-secondary' title={config.name}>{config.name}</div></div>-- {!readonly && <RemoveIcon className={`${s.deleteBtn} absolute right-1 top-1/2 translate-y-[-50%]`} onClick={() => onRemove(config.id)} />}- </div>+ <div className='ml-2 hidden shrink-0 items-center space-x-1 group-hover:flex'>+ {+ editable && <ActionButton+ onClick={(e) => {+ e.stopPropagation()+ setShowSettingsModal(true)+ }}+ >+ <RiEditLine className='h-4 w-4 shrink-0 text-text-tertiary' />+ </ActionButton>+ }+ <ActionButton+ onClick={() => onRemove(config.id)}+ state={isDeleting ? ActionButtonState.Destructive : ActionButtonState.Default}+ onMouseEnter={() => setIsDeleting(true)}+ onMouseLeave={() => setIsDeleting(false)}+ >+ <RiDeleteBinLine className={cn('h-4 w-4 shrink-0 text-text-tertiary', isDeleting && 'text-text-destructive')} />+ </ActionButton>+ </div>+ {+ config.indexing_technique && <Badge+ className='shrink-0 group-hover:hidden'+ text={formatIndexingTechniqueAndMethod(config.indexing_technique, config.retrieval_model_dict?.search_method)}+ />+ }+ {+ config.provider === 'external' && <Badge+ className='shrink-0 group-hover:hidden'+ text={t('dataset.externalTag') as string}+ />+ }+ <Drawer isOpen={showSettingsModal} onClose={() => setShowSettingsModal(false)} footer={null} mask={isMobile} panelClassName='mt-16 mx-2 sm:mr-2 mb-3 !p-0 !max-w-[640px] rounded-xl'>+ <SettingsModal+ currentDataset={config}+ onCancel={() => setShowSettingsModal(false)}+ onSave={handleSave}+ />+ </Drawer>+ </div >)}-export default React.memo(CardItem)++export default Itemdiff --git a/web/app/components/app/configuration/dataset-config/card-item/item.tsx b/web/app/components/app/configuration/dataset-config/card-item/item.tsxdeleted file mode 100644index 85d46122a37..00000000000--- 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<ItemProps> = ({- 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 (- <div className={cn(- 'group relative mb-1 flex h-10 w-full cursor-pointer items-center justify-between rounded-lg border-[0.5px] border-components-panel-border-subtle bg-components-panel-on-panel-item-bg px-2 last-of-type:mb-0 hover:bg-components-panel-on-panel-item-bg-hover',- isDeleting && 'border-state-destructive-border hover:bg-state-destructive-hover',- )}>- <div className='flex w-0 grow items-center space-x-1.5'>- <AppIcon- size='tiny'- iconType={iconInfo.icon_type}- icon={iconInfo.icon}- background={iconInfo.icon_type === 'image' ? undefined : iconInfo.icon_background}- imageUrl={iconInfo.icon_type === 'image' ? iconInfo.icon_url : undefined}- />- <div className='system-sm-medium w-0 grow truncate text-text-secondary' title={config.name}>{config.name}</div>- </div>- <div className='ml-2 hidden shrink-0 items-center space-x-1 group-hover:flex'>- {- editable && <ActionButton- onClick={(e) => {- e.stopPropagation()- setShowSettingsModal(true)- }}- >- <RiEditLine className='h-4 w-4 shrink-0 text-text-tertiary' />- </ActionButton>- }- <ActionButton- onClick={() => onRemove(config.id)}- state={isDeleting ? ActionButtonState.Destructive : ActionButtonState.Default}- onMouseEnter={() => setIsDeleting(true)}- onMouseLeave={() => setIsDeleting(false)}- >- <RiDeleteBinLine className={cn('h-4 w-4 shrink-0 text-text-tertiary', isDeleting && 'text-text-destructive')} />- </ActionButton>- </div>- {- config.indexing_technique && <Badge- className='shrink-0 group-hover:hidden'- text={formatIndexingTechniqueAndMethod(config.indexing_technique, config.retrieval_model_dict?.search_method)}- />- }- {- config.provider === 'external' && <Badge- className='shrink-0 group-hover:hidden'- text={t('dataset.externalTag') as string}- />- }- <Drawer isOpen={showSettingsModal} onClose={() => setShowSettingsModal(false)} footer={null} mask={isMobile} panelClassName='mt-16 mx-2 sm:mr-2 mb-3 !p-0 !max-w-[640px] rounded-xl'>- <SettingsModal- currentDataset={config}- onCancel={() => setShowSettingsModal(false)}- onSave={handleSave}- />- </Drawer>- </div >- )-}--export default Itemdiff --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.cssdeleted file mode 100644index da07056cbc6..00000000000--- 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.tsxindex 489ea1207b4..bf81858565e 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.tsxdeleted file mode 100644index 65951f662f4..00000000000--- 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: (- <svg width={len} height={len} viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">- <rect x="0.25" y="0.25" width="31.5" height="31.5" rx="7.75" fill="#F5F8FF" />- <path fillRule="evenodd" clipRule="evenodd" d="M8.66669 12.1078C8.66668 11.7564 8.66667 11.4532 8.68707 11.2035C8.7086 10.9399 8.75615 10.6778 8.88468 10.4255C9.07642 10.0492 9.38238 9.74322 9.75871 9.55147C10.011 9.42294 10.2731 9.3754 10.5367 9.35387C10.7864 9.33346 11.0896 9.33347 11.441 9.33349L14.0978 9.33341C14.4935 9.33289 14.8415 9.33243 15.1615 9.4428C15.4417 9.53946 15.697 9.69722 15.9087 9.90465C16.1506 10.1415 16.3058 10.4529 16.4823 10.8071L17.0786 12H19.4942C20.0309 12 20.4738 12 20.8346 12.0295C21.2093 12.0601 21.5538 12.1258 21.8773 12.2907C22.3791 12.5463 22.787 12.9543 23.0427 13.456C23.2076 13.7796 23.2733 14.1241 23.3039 14.4988C23.3334 14.8596 23.3334 15.3025 23.3334 15.8391V18.8276C23.3334 19.3642 23.3334 19.8071 23.3039 20.1679C23.2733 20.5426 23.2076 20.8871 23.0427 21.2107C22.787 21.7124 22.3791 22.1204 21.8773 22.376C21.5538 22.5409 21.2093 22.6066 20.8346 22.6372C20.4738 22.6667 20.0309 22.6667 19.4942 22.6667H12.5058C11.9692 22.6667 11.5263 22.6667 11.1655 22.6372C10.7907 22.6066 10.4463 22.5409 10.1227 22.376C9.62095 22.1204 9.213 21.7124 8.95734 21.2107C8.79248 20.8871 8.72677 20.5426 8.69615 20.1679C8.66667 19.8071 8.66668 19.3642 8.66669 18.8276V12.1078ZM14.0149 10.6668C14.5418 10.6668 14.6463 10.6755 14.7267 10.7033C14.8201 10.7355 14.9052 10.7881 14.9758 10.8572C15.0366 10.9167 15.0911 11.0063 15.3267 11.4776L15.5879 12L10.0001 12C10.0004 11.69 10.0024 11.4781 10.016 11.312C10.0308 11.1309 10.0559 11.0638 10.0727 11.0308C10.1366 10.9054 10.2386 10.8034 10.364 10.7395C10.397 10.7227 10.4641 10.6976 10.6452 10.6828C10.8341 10.6673 11.0823 10.6668 11.4667 10.6668H14.0149Z" fill="#444CE7" />- <rect x="0.25" y="0.25" width="31.5" height="31.5" rx="7.75" stroke="#E0EAFF" strokeWidth="0.5" />- </svg>- ),- }- return iconMap[type]-}--const TypeIcon: FC<ITypeIconProps> = ({- type,- size = 'lg',-}) => {- return (- <Icon type={type} size={size} ></Icon>- )-}-export default React.memo(TypeIcon)diff --git a/web/i18n/de-DE/app-debug.ts b/web/i18n/de-DE/app-debug.tsindex badf27be59a..7824352ff80 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.tsindex 0b9d08a9849..143ee55d78c 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.tsindex 9d1a824a88a..815c6d9aeb2 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.tsindex b89a1fbd34a..985e144826b 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.tsindex 76aa28d03fc..175272d53a0 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.tsindex 4fbdae1239b..b647d12ac85 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.tsindex 857dee9418c..5cc6840e3de 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.tsindex f0c1a69044e..aa8b046679d 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.tsindex ca894192dc7..b436d27386a 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.tsindex 2a18ae9f6b3..296cf5c17d6 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.tsindex 4d2b0068563..03b966db99b 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.tsindex fa1948c497a..c2aca3a9141 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.tsindex 8838fd13a98..3806b7adb38 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.tsindex 4c41fb09429..9bf6e1c46aa 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.tsindex 02680a8bae7..baa58098dd9 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.tsindex 7489034e533..bc0396df303 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.tsindex f15119a5f58..77d991974f9 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.tsindex 02afcd453a0..3eb0d8b7ea8 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.tsindex 0cd074a70f9..68cbb6c345e 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.tsindex 7f6153f9680..a795aebcfc3 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.tsindex ab4b0a06b07..d38f5dd9676 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.tsindex 5c1d3630e9c..2b9ab68f7d4 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.tsindex 1efec540df6..26194863a72 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.tsindex 0983eddcf6e..894e65a888b 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.tsindex fff56403a3a..aacbcc4b632 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.tsindex 29efbd10fc2..7c8f29aefef 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.tsindex 8d00994bef5..010a2039f56 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.tsindex 1b8c8d4c317..14a636d5a64 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.tsindex 6642d791042..9ecb93828c1 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.tsindex cc84adf8515..0b383674e73 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.tsindex 00704e76f58..19f350961b9 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.tsindex 58ddf8ba8e6..7c919aa4d76 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.tsindex d8ebc3d2dfb..6ae6ef4d981 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.tsindex e290dfe7113..1babb894424 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.tsindex 87b35168ebc..212a6ca2a9d 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: 'Контекст', // ContextnoData: 'Ви можете імпортувати знання як контекст', // You can import Knowledge as context- words: 'Слова', // Words- textBlocks: 'Текстові блоки', // Text BlocksselectTitle: 'Виберіть довідкові знання', // Select reference Knowledgeselected: 'Знання обрані', // Knowledge selectednoDataSet: 'Знання не знайдені', // No Knowledge founddiff --git a/web/i18n/uk-UA/dataset.ts b/web/i18n/uk-UA/dataset.tsindex 61972ac5657..b33f5c86e8a 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.tsindex 9e71899b865..6ea4e428c2a 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.tsindex e5ffd5b61b2..3f0f43571b6 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.tsindex a0759e9b8c0..33f563af99d 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.tsindex 69a92b5529b..710f7379332 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.tsindex ff3e131e894..aa636e424da 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.tsindex 80ec728d56a..fb295ad27ad 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: {