diff --git a/ui/src/components/ai-chat/ExecutionDetailDialog.vue b/ui/src/components/ai-chat/ExecutionDetailDialog.vue index 8330fed30..386546c66 100644 --- a/ui/src/components/ai-chat/ExecutionDetailDialog.vue +++ b/ui/src/components/ai-chat/ExecutionDetailDialog.vue @@ -18,147 +18,133 @@ v-if="item.type === WorkflowType.Question || item.type === WorkflowType.AiChat" >{{ item?.message_tokens + item?.answer_tokens }} tokens - {{ item?.run_time?.toFixed(2) }} s - + {{ item?.run_time?.toFixed(2) || 0.0 }} s + + - - - - 参数输入 - {{ item.question || '-' }} - - - - - - 检索内容 - {{ item.question || '-' }} - - - 检索结果 - - - - + + + + 参数输入 + {{ item.question || '-' }} + + + + + + 检索内容 + {{ item.question || '-' }} + + + 检索结果 + + + - - - {{ paragraphIndex + 1 + '' }} - - - {{ paragraph.similarity?.toFixed(3) }} - - - - - - - - - - - - - - 判断结果 - - {{ item.branch_name || '-' }} - - - - - - - 角色设定 (System) - - {{ item.system || '-' }} - - - - 历史记录 - - - - {{ history.role }}:{{ history.content }} - - - - - - - - 本次对话 - - {{ item.question || '-' }} - - - - AI 回答 - - - - - - - + + + + + + + + + + + + 判断结果 + + {{ item.branch_name || '-' }} + + + + + + + 角色设定 (System) + + {{ item.system || '-' }} + + + + 历史记录 + + + + {{ history.role }}:{{ history.content }} + + + - + + + + 本次对话 + + {{ item.question || '-' }} + + + + AI 回答 + - - + + + + + + + 回复内容 + + + + - + + + + + + + + 错误日志 + {{ item.err_message || '-' }} diff --git a/ui/src/enums/application.ts b/ui/src/enums/application.ts new file mode 100644 index 000000000..ee0f6d4d2 --- /dev/null +++ b/ui/src/enums/application.ts @@ -0,0 +1,5 @@ +export enum SearchMode { + embedding = '向量检索', + keywords = '全文检索', + blend = '混合检索' +} diff --git a/ui/src/layout/components/breadcrumb/index.vue b/ui/src/layout/components/breadcrumb/index.vue index 4dcd41b6a..6e17322be 100644 --- a/ui/src/layout/components/breadcrumb/index.vue +++ b/ui/src/layout/components/breadcrumb/index.vue @@ -90,10 +90,7 @@
- {{ history.role }}:{{ history.content }} -
+ {{ history.role }}:{{ history.content }} +