diff --git a/ui/src/components/ai-chat/component/knowledge-source-component/ExecutionDetailCard.vue b/ui/src/components/ai-chat/component/knowledge-source-component/ExecutionDetailCard.vue
index da731efc7..c22b74cad 100644
--- a/ui/src/components/ai-chat/component/knowledge-source-component/ExecutionDetailCard.vue
+++ b/ui/src/components/ai-chat/component/knowledge-source-component/ExecutionDetailCard.vue
@@ -1114,7 +1114,9 @@
- {{ $t('common.param.outputParam') }}({{ $t('chat.executionDetails.documentSplitTip') }})
+ {{ $t('common.param.outputParam') }}({{
+ $t('chat.executionDetails.documentSplitTip')
+ }})
@@ -1150,12 +1152,14 @@
{{ $t('common.param.inputParam') }}
- {{$t('chat.executionDetails.subBlockLength')}}:
+ {{ $t('views.workflow.nodes.documentSplitNode.chunk_length.label') }}:
{{ data.size }}
-
{{$t('chat.executionDetails.writeContent')}}
+
{{ $t('chat.executionDetails.writeContent') }}
@@ -73,19 +60,11 @@
/>
diff --git a/ui/src/workflow/nodes/document-split-node/index.vue b/ui/src/workflow/nodes/document-split-node/index.vue
index c2bd301ce..b8de19913 100644
--- a/ui/src/workflow/nodes/document-split-node/index.vue
+++ b/ui/src/workflow/nodes/document-split-node/index.vue
@@ -10,11 +10,13 @@
require-asterisk-position="right"
label-width="auto"
>
-
-
-
-
+ :placeholder="$t('views.workflow.nodes.documentSplitNode.splitStrategy.placeholder')"
+ >
+
+
+
-
- 子分块长度
-
+
+ {{ $t('views.workflow.nodes.documentSplitNode.chunk_length.label') }}
+
- 核心目标是平衡检索精度与召回效率
- •避免过短拆分:单块<50 字易导致语义碎片化,检索时可能因缺少上下文无法匹配查询意图
- •避免过长拆分:单块>500 字会增加冗余信息,降低检索精准度,且占用更多存储和计算资源
+ {{ $t('views.workflow.nodes.documentSplitNode.chunk_length.tooltip1') }}
+ {{ $t('views.workflow.nodes.documentSplitNode.chunk_length.tooltip2') }}
+ {{ $t('views.workflow.nodes.documentSplitNode.chunk_length.tooltip3') }}
@@ -72,10 +63,7 @@
:label="$t('views.workflow.nodes.searchDocumentNode.custom')"
value="custom"
/>
-
+
@@ -200,7 +188,11 @@
/>
-
+
{{ $t('views.document.setRules.with_filter.text') }}
-
+
@@ -221,17 +212,17 @@
- 分段标题设置为分段的关联问题
-
+ {{ $t('views.workflow.nodes.documentSplitNode.title1') }}
+
-
+
@@ -252,17 +243,17 @@
- 文档名称设置为分段的关联问题
-
+ {{ $t('views.workflow.nodes.documentSplitNode.title2') }}
+
-
+
@@ -297,7 +288,7 @@ import { useRoute } from 'vue-router'
const route = useRoute()
const {
- query: { id } // id为knowledgeID
+ query: { id }, // id为knowledgeID
} = route as any
const apiType = computed(() => {
@@ -333,10 +324,9 @@ const form = {
patterns_reference: [],
with_filter: false,
with_filter_type: 'custom',
- with_filter_reference: []
+ with_filter_reference: [],
}
-
const form_data = computed({
get: () => {
if (props.nodeModel.properties.node_data) {
@@ -348,10 +338,9 @@ const form_data = computed({
},
set: (value) => {
set(props.nodeModel.properties, 'node_data', value)
- }
+ },
})
-
const aiChatNodeFormRef = ref()
const nodeCascaderRef = ref()
const nodeCascaderRef2 = ref()
@@ -362,7 +351,7 @@ const validate = () => {
nodeCascaderRef.value ? nodeCascaderRef.value.validate() : Promise.resolve(''),
nodeCascaderRef2.value ? nodeCascaderRef2.value.validate() : Promise.resolve(''),
nodeCascaderRef3.value ? nodeCascaderRef3.value.validate() : Promise.resolve(''),
- aiChatNodeFormRef.value?.validate()
+ aiChatNodeFormRef.value?.validate(),
]).catch((err: any) => {
return Promise.reject({ node: props.nodeModel, errMessage: err })
})
@@ -377,15 +366,11 @@ const initSplitPatternList = () => {
})
}
-
onMounted(() => {
initSplitPatternList()
set(props.nodeModel, 'validate', validate)
})
-
-
+
diff --git a/ui/src/workflow/nodes/intent-classify-node/index.vue b/ui/src/workflow/nodes/intent-classify-node/index.vue
index 928e7159d..0783df6cc 100644
--- a/ui/src/workflow/nodes/intent-classify-node/index.vue
+++ b/ui/src/workflow/nodes/intent-classify-node/index.vue
@@ -108,7 +108,7 @@