- change Chunk Structure
+ {t('workflow.nodes.knowledgeBase.changeChunkStructure')}
{
diff --git a/web/app/components/workflow/nodes/knowledge-base/components/input-variable.tsx b/web/app/components/workflow/nodes/knowledge-base/components/input-variable.tsx
index 91f5e396c2..ae91041903 100644
--- a/web/app/components/workflow/nodes/knowledge-base/components/input-variable.tsx
+++ b/web/app/components/workflow/nodes/knowledge-base/components/input-variable.tsx
@@ -1,4 +1,5 @@
import { memo } from 'react'
+import { useTranslation } from 'react-i18next'
import VarReferencePicker from '@/app/components/workflow/nodes/_base/components/variable/var-reference-picker'
import { Field } from '@/app/components/workflow/nodes/_base/components/layout'
import type { ValueSelector } from '@/app/components/workflow/types'
@@ -15,11 +16,12 @@ const InputVariable = ({
onInputVariableChange,
readonly = false,
}: InputVariableProps) => {
+ const { t } = useTranslation()
+
return (
{t('datasetSettings.form.retrievalSetting.learnMore')}
-
- about retrieval method.
+ {t('workflow.nodes.knowledgeBase.aboutRetrieval')}
),
}}
diff --git a/web/i18n/en-US/workflow.ts b/web/i18n/en-US/workflow.ts
index d28cab291f..81726464a4 100644
--- a/web/i18n/en-US/workflow.ts
+++ b/web/i18n/en-US/workflow.ts
@@ -368,6 +368,7 @@ const translation = {
ms: 'ms',
retries: '{{num}} Retries',
},
+ inputVars: 'Input Variables',
},
start: {
required: 'required',
@@ -767,6 +768,11 @@ const translation = {
currentLoopCount: 'Current loop count: {{count}}',
totalLoopCount: 'Total loop count: {{count}}',
},
+ knowledgeBase: {
+ chunkStructure: 'Chunk Structure',
+ changeChunkStructure: 'Change Chunk Structure',
+ aboutRetrieval: 'about retrieval method.',
+ },
note: {
addNote: 'Add Note',
editor: {
diff --git a/web/i18n/zh-Hans/workflow.ts b/web/i18n/zh-Hans/workflow.ts
index ae381b9b8a..1d854c4749 100644
--- a/web/i18n/zh-Hans/workflow.ts
+++ b/web/i18n/zh-Hans/workflow.ts
@@ -369,6 +369,7 @@ const translation = {
ms: '毫秒',
retries: '{{num}} 重试次数',
},
+ inputVars: '输入变量',
},
start: {
required: '必填',
@@ -768,6 +769,11 @@ const translation = {
currentLoopCount: '当前循环次数:{{count}}',
totalLoopCount: '总循环次数:{{count}}',
},
+ knowledgeBase: {
+ chunkStructure: '分段结构',
+ changeChunkStructure: '更改分段结构',
+ aboutRetrieval: '关于知识检索。',
+ },
note: {
addNote: '添加注释',
editor: {