= (props) => {
- const { icon, className, title, description, isActive, children, actions, activeHeaderClassName, style, effectImg, onSelected, onClick, ...rest } = props
+ const { icon, className, title, description, isActive, children, actions, activeHeaderClassName, style, effectImg, onSwitched, onClick, ...rest } = props
return = (props) => {
}}
onClick={(e) => {
if (!isActive)
- onSelected?.()
+ onSwitched?.()
onClick?.(e)
}}
{...rest}>
diff --git a/web/i18n/en-US/dataset-creation.ts b/web/i18n/en-US/dataset-creation.ts
index 00f390bfe2..014f9a1a93 100644
--- a/web/i18n/en-US/dataset-creation.ts
+++ b/web/i18n/en-US/dataset-creation.ts
@@ -164,6 +164,8 @@ const translation = {
indexSettingTip: 'To change the index method & embedding model, please go to the ',
retrievalSettingTip: 'To change the retrieval setting, please go to the ',
datasetSettingLink: 'Knowledge settings.',
+ previewChunkTip: 'Click the \'Preview Chunk\' button on the left to load the preview',
+ previewChunkCount: '{{count}} Estimated chunks',
},
stepThree: {
creationTitle: '🎉 Knowledge created',
diff --git a/web/i18n/zh-Hans/dataset-creation.ts b/web/i18n/zh-Hans/dataset-creation.ts
index ad73044110..c8f64777fb 100644
--- a/web/i18n/zh-Hans/dataset-creation.ts
+++ b/web/i18n/zh-Hans/dataset-creation.ts
@@ -164,6 +164,8 @@ const translation = {
indexSettingTip: '要更改索引方法和 embedding 模型,请转到',
retrievalSettingTip: '要更改检索方法,请转到',
datasetSettingLink: '知识库设置。',
+ previewChunkTip: '点击左侧的“预览块”按钮来加载预览',
+ previewChunkCount: '{{count}} 预估块',
},
stepThree: {
creationTitle: '🎉 知识库已创建',