Image-only PPTX attachments failed with no indexable text even when a local OCR model was configured. PPTX parsing now recognizes embedded PNG, JPEG and WebP images through the existing local OCR path, preserves native text and slide locators, and honors the selected parsing workflow. OCR workers previously retained model sessions and WASM memory indefinitely after successful parsing. Release the worker after 60 seconds with no active or queued requests, reuse it for continuous work, and reload on demand. Fast text/index modes still skip OCR. This does not render Office layouts, recognize inherited master images, or change Agent execution permissions. Validated four real PPTX attachments (40 pages), idle memory release and a nine-page reimport after model reload on Windows x64 with PP-OCRv6 Tiny. 49 local OCR requests and zero text-model calls. All 4293 tests passed with 67 skipped; typecheck, lint and the isolated Electron build passed. Release note: 修复已配置本地 OCR 时图片型 PPTX 仍无法导入的问题,识别结果保留幻灯片定位。OCR 空闲 60 秒后自动释放模型运行内存,连续解析复用模型,下次使用时自动重新加载。
873 B
873 B
文档处理
文档处理负责聊天附件和知识库导入中的文本提取、格式转换与本地 OCR。
文档导航
| 文档 | 权威职责 |
|---|---|
| 文档解析与本地 OCR PRD | 产品范围、解析策略、OCR 模型管理和验收 |
| 聊天附件技术说明 | 文件选择与粘贴的进程链路、IPC、PPTX 图片 OCR、Worker 生命周期和验证证据 |
当前尚无独立 User Stories、功能逻辑、UI 和进度文档;聊天输入区交互遵循根目录 UI 设计系统。
Office 文件的浏览器内人工编辑、AI 选区修改、保存和撤销不属于文档解析职责,由 Office 协同编辑负责。文档处理仍负责内容提取、OCR、 旧格式转换和供模型消费的统一结构。