Skip to content

Commit f1083d9

Browse files
committed
refactor: 文档提取details保存content长度限制为500
1 parent 93a5c6e commit f1083d9

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

apps/application/flow/step_node/document_extract_node/impl/base_document_extract_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def get_details(self, index: int, **kwargs):
4040
"index": index,
4141
'run_time': self.context.get('run_time'),
4242
'type': self.node.type,
43-
# 'content': self.context.get('content'), # 不保存content内容,因为content内容可能会很大
43+
'content': self.context.get('content')[:500] + '...', # 不保存content全部内容,因为content内容可能会很大
4444
'status': self.status,
4545
'err_message': self.err_message,
4646
'document_list': self.context.get('document_list')

ui/src/components/ai-chat/ExecutionDetailDialog.vue

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,16 @@
218218
<!-- 文档内容提取 -->
219219
<template v-if="item.type === WorkflowType.DocumentExtractNode">
220220
<div class="card-never border-r-4">
221-
<h5 class="p-8-12">参数输出</h5>
221+
<h5 class="p-8-12">
222+
参数输出
223+
<el-tooltip
224+
effect="dark"
225+
content="每个文档仅支持预览500字"
226+
placement="right"
227+
>
228+
<AppIcon iconName="app-warning" class="app-warning-icon"></AppIcon>
229+
</el-tooltip>
230+
</h5>
222231
<div class="p-8-12 border-t-dashed lighter">
223232
<el-scrollbar height="150">
224233
<MdPreview

0 commit comments

Comments
 (0)