From e14620b59832c825af2d4917367191209868f9f8 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Fri, 21 Jun 2024 18:40:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/components/ai-chat/KnowledgeSource.vue | 56 +++++++++++++++++++ ui/src/components/ai-chat/index.vue | 42 +------------- ui/src/components/icons/index.ts | 56 ++++++++++++++++++- ui/src/router/modules/application.ts | 8 --- ui/src/router/routes.ts | 8 +++ ui/src/styles/app.scss | 3 + ui/src/views/application-workflow/index.vue | 20 ++++--- ui/src/workflow/common/NodeCascader.vue | 5 +- 8 files changed, 142 insertions(+), 56 deletions(-) create mode 100644 ui/src/components/ai-chat/KnowledgeSource.vue diff --git a/ui/src/components/ai-chat/KnowledgeSource.vue b/ui/src/components/ai-chat/KnowledgeSource.vue new file mode 100644 index 000000000..e158e9271 --- /dev/null +++ b/ui/src/components/ai-chat/KnowledgeSource.vue @@ -0,0 +1,56 @@ + + + diff --git a/ui/src/components/ai-chat/index.vue b/ui/src/components/ai-chat/index.vue index b719a048c..acf080c92 100644 --- a/ui/src/components/ai-chat/index.vue +++ b/ui/src/components/ai-chat/index.vue @@ -73,38 +73,9 @@ +
- 知识来源 -
- - {{ dataset.name }} - -
- -
- 引用分段:{{ item.paragraph_list?.length || 0 }} - - 消耗 tokens: {{ item?.message_tokens + item?.answer_tokens }} - - - 耗时: {{ item.run_time?.toFixed(2) }} s - -
+
@@ -168,8 +139,6 @@
- -