diff --git a/ui/src/api/API_README.md b/ui/src/api/API_README.md index 59685774c5c..5eca4b1b81d 100644 --- a/ui/src/api/API_README.md +++ b/ui/src/api/API_README.md @@ -242,6 +242,7 @@ Workspace、System 资源管理和 System 共享资源均在各自 `knowledge/kn 请求使用 `KnowledgeHitTestPayload`,包含 `query_text`、`image_list`、`top_number`、`similarity` 和 `search_mode`;检索模式复用 `KNOWLEDGE_SEARCH_MODE`。文本和图片至少提供一项,图片仅支持向量或混合检索。 结果使用 `KnowledgeHitTestResult`,保留分段、得分及图片命中信息。Workspace 共享暂无对应接口,不回退其他范围。 +结果的可选字段 `document_image_id` 有值且 `document_resource_type` 为 `DOCUMENT_RESOURCE_TYPE.IMAGE` 时展示图片向量标签,否则展示文本向量标签。 ### System 共享知识库 diff --git a/ui/src/api/types/knowledge.ts b/ui/src/api/types/knowledge.ts index 21473b98a2e..313af6bb172 100644 --- a/ui/src/api/types/knowledge.ts +++ b/ui/src/api/types/knowledge.ts @@ -3,7 +3,7 @@ import type LogicFlow from '@logicflow/core' import { KNOWLEDGE_SEARCH_MODE, KNOWLEDGE_SYNC_TYPE, KNOWLEDGE_TYPE } from '@/api/enums' import type { DefaultModelSettingPayload } from './model' -import type { DocumentTaskState } from './document' +import type { DocumentResourceType, DocumentTaskState } from './document' import type { ParagraphItem } from './paragraph' /** 生成关联问题共用的模型与提示词配置。 */ @@ -190,6 +190,8 @@ export interface KnowledgeHitTestAsset { /** 召回测试返回的分段与命中得分。 */ export interface KnowledgeHitTestResult extends ParagraphItem { + document_image_id?: string | null + document_resource_type?: DocumentResourceType | null knowledge_id: string knowledge_name: string document_name: string diff --git a/ui/src/conversation-panel/left-sidebar/conversation-list/index.vue b/ui/src/conversation-panel/left-sidebar/conversation-list/index.vue index 1ffd2b4a59d..284b0816443 100644 --- a/ui/src/conversation-panel/left-sidebar/conversation-list/index.vue +++ b/ui/src/conversation-panel/left-sidebar/conversation-list/index.vue @@ -32,7 +32,7 @@ const conversationTime = (conversation: Conversation) => relativeTimeFormat(conv 新建对话
-
历史对话
+
历史对话
diff --git a/ui/src/conversation-panel/left-sidebar/portal-conversation-list/index.vue b/ui/src/conversation-panel/left-sidebar/portal-conversation-list/index.vue index fc700ed3258..41c475f6247 100644 --- a/ui/src/conversation-panel/left-sidebar/portal-conversation-list/index.vue +++ b/ui/src/conversation-panel/left-sidebar/portal-conversation-list/index.vue @@ -70,7 +70,7 @@ const handleDeleteConversation = (group: PortalApplicationGroup, conversation: C 新建对话
-
历史对话
+
历史对话
diff --git a/ui/src/layout/sidebar/ResourceDetailMenu.vue b/ui/src/layout/sidebar/ResourceDetailMenu.vue index 6bd5535bfac..98256cdd355 100644 --- a/ui/src/layout/sidebar/ResourceDetailMenu.vue +++ b/ui/src/layout/sidebar/ResourceDetailMenu.vue @@ -35,14 +35,14 @@ watch(
@@ -51,7 +51,7 @@ watch( diff --git a/ui/src/views/VIEW_README.md b/ui/src/views/VIEW_README.md index 751e50e5a43..eb365bd1831 100644 --- a/ui/src/views/VIEW_README.md +++ b/ui/src/views/VIEW_README.md @@ -153,6 +153,7 @@ System 资源管理或 System 共享 Knowledge API 的 `postKnowledgeHitTest`; 输入区通过 `ImageUploadCard` 展示图片进度、失败重试和删除,不提供点击预览。上传中或存在失败图片时禁测试, 失败图片可直接重新上传或移除。移除与卸载释放本地预览并取消未完成上传。 测试期间冻结参数与输入;结果使用 `MkSourceCard` 展示分段、得分、文档名称及命中图片,Markdown 只读。 +点击结果卡片按需挂载 `ParagraphDialog`,按命中分段的知识库和文档 ID 加载详情,关闭动画后卸载;保存正文后同步当前结果,保留检索得分。 “本次查询”展示成功请求的文本与图片快照,图片位于文本上方,缩略图自动换行并支持预览,不使用横向滚动。 初始与无命中分别展示空态;请求失败由请求层提示,保留输入与已有结果供重试。切换知识库或资源范围通过路由 key 重建召回测试页,隔离查询与结果状态。 diff --git a/ui/src/views/home/components/HomeStatistics.vue b/ui/src/views/home/components/HomeStatistics.vue index 9fb62e2da71..f3492029e4c 100644 --- a/ui/src/views/home/components/HomeStatistics.vue +++ b/ui/src/views/home/components/HomeStatistics.vue @@ -103,9 +103,7 @@ watch(() => [props.workspaceId, props.applicationId], loadMonitoring, { immediat

{{ metric.id === 'tokens' ? formatTokenNumber(metric.series[0]?.total) : numberFormat(metric.series[0]?.total) }}

- - +{{ numberFormat(metric.series[1]?.total) }} - +
+{{ numberFormat(metric.series[1]?.total) }}
diff --git a/ui/src/views/knowledge-detail/hit-test/index.vue b/ui/src/views/knowledge-detail/hit-test/index.vue index 0e46e892682..e2eab41b588 100644 --- a/ui/src/views/knowledge-detail/hit-test/index.vue +++ b/ui/src/views/knowledge-detail/hit-test/index.vue @@ -1,13 +1,17 @@