feat: 新增mac ocr转文字,增加到问一问微信 图片索引优化速度

- 图片文字索引性能与进度诚实化
- 问问微信:证据卡区分「消息类型」与「派生来源」,派生命中内容自报来源
- 问问微信:回答规则禁止未真实执行的多轮承诺
- 本地图片文字识别:支持 macOS 系统 OCR(Apple Vision)
This commit is contained in:
Wxw-Gu committed 2026-09-17 13:11:20 +08:00
1 parent b8f08d54c8
commit 1337bcb7de
53 files changed
+4985 -624

No files matched your search

+10 -1
View File
@@ -229,10 +229,19 @@ export interface KnowledgeEvidence {
* 有值 = 这条结果依赖本地派生内容才能命中(而不是原始消息本身的文字)。
* 与 `sourceKind` 正交:`sourceKind` 说的是原始消息是什么,这里说的是"靠什么搜到的"。
*/
derivedSource?: 'image_ocr'
derivedSource?: KnowledgeDerivedSource
score?: number
}
/**
* 派生来源的种类。
*
* 用 union 而不是 `isOcr: boolean`:以后接视频字幕 / 文件解析时只需要加一个成员,
* 不必给每个消费方再添一个布尔字段。UI 侧的展示文案集中在
* `renderer/src/components/search/evidenceSourceLabels.ts`,不在这里。
*/
export type KnowledgeDerivedSource = 'image_ocr' | 'voice_transcript'
/**
* 证据文本面向用户 / 模型时的可读化处理。
*