From 0f9211a7b2873c00731abf5d3d0ddceab5c852d0 Mon Sep 17 00:00:00 2001 From: iven Date: Sun, 12 Apr 2026 19:26:18 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20wiki=E5=8F=98=E6=9B=B4=E6=97=A5?= =?UTF-8?q?=E5=BF=97=20=E2=80=94=20Phase=20B+C=20=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E6=8F=90=E5=8F=96=E5=99=A8+multipart=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wiki/log.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/wiki/log.md b/wiki/log.md index b4ef172..794f758 100644 --- a/wiki/log.md +++ b/wiki/log.md @@ -9,6 +9,16 @@ tags: [log, history] > Append-only 操作记录。格式: `## [日期] 类型 | 描述` +## [2026-04-12] feat | 知识库 Phase B+C — 文档提取器 + multipart 文件上传 + +- extractors.rs: PDF(pdf-extract) + DOCX(zip+quick-xml) + Excel(calamine) 三格式提取 +- 格式路由 detect_format() → RAG 通道或结构化通道 +- POST /api/v1/knowledge/upload multipart 文件上传 +- PDF/DOCX/Markdown → RAG 管线,Excel → structured_rows JSONB 存储 +- 结构化数据源 API: GET/DELETE /api/v1/structured/sources + /rows + /query +- 修复 industry/service.rs SaasError::Database 类型不匹配 +- 累计新增 849 行,7 文件变更 + ## [2026-04-12] fix | 审计修复 — 4 CRITICAL + 5 HIGH 全部解决 - C1: SQL 注入风险 → industry/service.rs 参数化查询 ($N 绑定)