问数据双轨重构:快速直查与深度分析分流、可点击数字证据闭环及双语文档

- 重构问数据执行架构为「快速直查(fast)」与「深度分析(deep)」双模式,内置语义预命中(Grounding)注入指标卡片、标准实体编码与表目录血缘
- 快速直查免工作流生成单节点执行,新增零额外模型调用的数字证据归一与封存(direct_evidence),打通可点击数字溯源与 /verify 校验
- 深度分析与助手编排接入跨源本体穿透(自动升级重跑与一键沿本体排查关联数据源),优化数据源范围智能收敛与往返缓存
- 补齐端到端回归测试矩阵与中英文全量文档说明
This commit is contained in:
ThearchyHelios
2026-11-12 12:58:42 +08:00
parent f144ef16d2
commit 46a2988dc1
43 changed files with 5424 additions and 169 deletions
+10
View File
@@ -1716,6 +1716,8 @@ for (const theme of THEMES) {
const bodyAfter = await page.evaluate(() => Math.round(document.querySelector('[data-stream-scroll]')?.getBoundingClientRect().width ?? 0))
check('390 宽:抽屉打开时正文不被挤窄', bodyAfter === narrow.body, `${narrow.body} → ${bodyAfter}`)
await page.screenshot({ path: `${SHOTS}/narrow-390-drawer-${theme}.png` })
// 目录失败提示在窄屏会覆盖顶部会话;先按真实用户路径关闭提示,再验证抽屉选中交互。
for (const close of await page.getByRole('button', { name: '关闭提示', exact: true }).all()) await close.click()
await drawer.locator('div.group', { hasText: '会话 B' }).locator('button').first().click()
await page.waitForURL(/\/chat\/c0idleb$/, { timeout: 5000 }).catch(() => {})
await page.waitForTimeout(300)
@@ -3551,6 +3553,14 @@ for (const theme of THEMES) {
`${log.sourceGets - getsBefore} 次`)
check('别处刚加的库出现在首屏的标签里', await page.locator('[data-scope-chip="ds-new"]').waitFor({ timeout: 5000 })
.then(() => true, () => false))
const freshGets = log.sourceGets
await page.locator('nav[aria-label="主导航"] a[href="/runs"]').click()
await page.waitForURL((u) => u.pathname.startsWith('/runs'))
await page.locator('nav[aria-label="主导航"] a[href^="/chat"]').first().click()
await page.waitForURL((u) => u.pathname.startsWith('/chat'))
await page.locator('[data-scope-chip="ds-new"]').waitFor({ timeout: 5000 })
await page.waitForTimeout(300)
check('缓存仍新鲜时快速往返不重复取库列表', log.sourceGets === freshGets, `${log.sourceGets - freshGets} 次`)
ctl.extraSource = false
check('没有运行时报错', errors.length === 0, errors[0] ?? '')
await ctx.close()