feat: 增强知识库索引与设置页面模块化拆分
扩展知识库索引任务和 RAG 检索支持增量入库和文档去重,优 化本体检测和规则匹配精度,前端设置页面拆分为 LLM、邮件 和 Hermes 员工同步子面板并重构样式,新增日志详情组件和 知识入库日志模型,补充单元测试覆盖。
This commit is contained in:
@@ -67,15 +67,15 @@ const attachmentMeta = {
|
||||
severity: 'high',
|
||||
label: '高风险',
|
||||
headline: '票据类型不匹配',
|
||||
summary: '交通票据挂在办公费明细下。',
|
||||
points: ['票据识别为出租车/网约车票据', '当前费用项目为办公费'],
|
||||
summary: '交通票据挂在办公用品费明细下。',
|
||||
points: ['票据识别为出租车/网约车票据', '当前费用项目为办公用品费'],
|
||||
suggestion: '把费用项目调整为交通费,或更换为办公用品票据。'
|
||||
}
|
||||
}
|
||||
|
||||
test('attachment insight exposes recognition fields and rule basis', () => {
|
||||
const insight = buildAttachmentInsightViewModel(attachmentMeta, {
|
||||
name: '办公费',
|
||||
name: '办公用品费',
|
||||
itemType: 'office'
|
||||
})
|
||||
|
||||
@@ -90,7 +90,7 @@ test('AI advice card splits every attachment risk point with basis and suggestio
|
||||
expenseItems: [
|
||||
{
|
||||
id: 'item-1',
|
||||
name: '办公费',
|
||||
name: '办公用品费',
|
||||
invoiceId: 'taxi-invoice.pdf'
|
||||
}
|
||||
],
|
||||
@@ -278,7 +278,7 @@ test('AI advice view model exposes grouped completion and risk sections', () =>
|
||||
tone: 'high',
|
||||
label: '高风险',
|
||||
title: '票据类型不匹配',
|
||||
risk: '交通票据挂在办公费明细下。',
|
||||
risk: '交通票据挂在办公用品费明细下。',
|
||||
ruleBasis: ['附件类型与当前费用项目不匹配。'],
|
||||
suggestion: '把费用项目调整为交通费。'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user