From 93efd15f04ff7ab84c5830eb6c182dfa683317fd Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Fri, 17 Oct 2025 16:30:25 +0800 Subject: [PATCH] feat: Add Document Search node function --- ui/src/assets/workflow/icon_doc-search.svg | 4 + ui/src/assets/workflow/icon_file-video.svg | 4 +- .../ExecutionDetailCard.vue | 54 ++++--- .../lang/en-US/views/application-workflow.ts | 4 + .../lang/zh-CN/views/application-workflow.ts | 4 + .../zh-Hant/views/application-workflow.ts | 8 +- ui/src/workflow/common/data.ts | 3 +- .../icons/search-document-node-icon.vue | 2 +- .../component/FileUploadSettingDialog.vue | 2 +- .../nodes/search-document-node/index.vue | 152 ++++++++++++------ 10 files changed, 158 insertions(+), 79 deletions(-) create mode 100644 ui/src/assets/workflow/icon_doc-search.svg diff --git a/ui/src/assets/workflow/icon_doc-search.svg b/ui/src/assets/workflow/icon_doc-search.svg new file mode 100644 index 000000000..7ab63ff9f --- /dev/null +++ b/ui/src/assets/workflow/icon_doc-search.svg @@ -0,0 +1,4 @@ + + + + diff --git a/ui/src/assets/workflow/icon_file-video.svg b/ui/src/assets/workflow/icon_file-video.svg index b90b79051..cdfe18190 100644 --- a/ui/src/assets/workflow/icon_file-video.svg +++ b/ui/src/assets/workflow/icon_file-video.svg @@ -1,5 +1,5 @@ - - + + 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 08bdd60c9..bea80173b 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 @@ -3,7 +3,7 @@
- + {{ data?.message_tokens + data?.answer_tokens }} tokens{{ data?.message_tokens + data?.answer_tokens }} tokens {{ data?.run_time?.toFixed(2) || 0.0 }} s - + - +
@@ -64,7 +64,7 @@