feat: 完善 AI 智能检索与定位

新增 AI 查询规划和主题变体多轮检索
修复无结果时回退全量消息导致的错误结论
优化目标成员优先级和大数据量消息匹配性能
新增检索诊断日志、任务中心和持久化缓存
支持证据按时间定位档案并闪烁提示
This commit is contained in:
Wxw-Gu
2026-07-28 15:52:31 +08:00
parent 33aaf4d558
commit 49684f3365
16 changed files with 2794 additions and 109 deletions
+7 -2
View File
@@ -579,7 +579,13 @@ app.whenReady().then(async () => {
ipcMain.handle(
'db:getMessages',
async (_, userMd5: string, startTime?: number, endTime?: number, options?: { limit?: number }) => {
async (
_,
userMd5: string,
startTime?: number,
endTime?: number,
options?: { limit?: number }
) => {
const messages = await chat.listMessagesAsync(userMd5, startTime, endTime, options)
if (chat.isReady()) {
saveCachedMessages(chat.getCurrentAccountRoot(), userMd5, startTime, endTime, messages)
@@ -654,7 +660,6 @@ app.whenReady().then(async () => {
return { success: false, error: String(error) }
}
})
ipcMain.handle('report:listGenerated', async () => {
return listGeneratedReports()
})