Skip to content

Commit

Permalink
refactor: 文档提取details保存content长度限制为500
Browse files Browse the repository at this point in the history
  • Loading branch information
liuruibin committed Nov 26, 2024
1 parent 93a5c6e commit f1083d9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def get_details(self, index: int, **kwargs):
"index": index,
'run_time': self.context.get('run_time'),
'type': self.node.type,
# 'content': self.context.get('content'), # 不保存content内容,因为content内容可能会很大
'content': self.context.get('content')[:500] + '...', # 不保存content全部内容,因为content内容可能会很大
'status': self.status,
'err_message': self.err_message,
'document_list': self.context.get('document_list')
Expand Down
11 changes: 10 additions & 1 deletion ui/src/components/ai-chat/ExecutionDetailDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,16 @@
<!-- 文档内容提取 -->
<template v-if="item.type === WorkflowType.DocumentExtractNode">
<div class="card-never border-r-4">
<h5 class="p-8-12">参数输出</h5>
<h5 class="p-8-12">
参数输出
<el-tooltip
effect="dark"
content="每个文档仅支持预览500字"
placement="right"
>
<AppIcon iconName="app-warning" class="app-warning-icon"></AppIcon>
</el-tooltip>
</h5>
<div class="p-8-12 border-t-dashed lighter">
<el-scrollbar height="150">
<MdPreview
Expand Down

0 comments on commit f1083d9

Please sign in to comment.