Skip to content

Commit 1a1722c

Browse files
committed
refactor: enhance chunk size input with tooltip for better user guidance
1 parent bfae088 commit 1a1722c

File tree

1 file changed

+18
-3
lines changed
  • ui/src/workflow/nodes/document-split-node

1 file changed

+18
-3
lines changed

ui/src/workflow/nodes/document-split-node/index.vue

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,26 @@
5050
/>
5151
</el-select>
5252
</el-form-item>
53-
<el-form-item :label="$t('子分块大小')">
54-
<el-slider
53+
<el-form-item>
54+
<template #label>
55+
<div class="flex">
56+
<span>子分块长度</span>
57+
<el-tooltip
58+
effect="dark"
59+
placement="top"
60+
>
61+
<template #content>
62+
核心目标是平衡检索精度与召回效率 <br/>
63+
•避免过短拆分:单块<50 字易导致语义碎片化,检索时可能因缺少上下文无法匹配查询意图<br/>
64+
•避免过长拆分:单块>500 字会增加冗余信息,降低检索精准度,且占用更多存储和计算资源
65+
</template>
66+
<AppIcon iconName="app-warning" class="app-warning-icon"></AppIcon>
67+
</el-tooltip>
68+
</div>
69+
</template>
70+
<el-input-number
5571
v-model="form_data.chunk_size"
5672
show-input
57-
:show-input-controls="false"
5873
:min="50"
5974
:max="100000"
6075
/>

0 commit comments

Comments
 (0)