Serendipity
6b89488677
test: 补充测试覆盖率 — DB/CLI/Search/Ingest + 修复 chromadb 异常兼容
2026-07-11 20:02:24 +08:00
Serendipity
2d0e8c4997
chore: ruff lint 修复 + 第一优先级全部完成
2026-07-11 19:50:35 +08:00
Serendipity
7b3c7d5323
feat: DocumentIngestor 支持增量入库(FileTracker)
2026-07-11 19:41:21 +08:00
Serendipity
925499b05b
test: 补充 ingest_file 和 ingest_directory 的测试覆盖
...
Co-Authored-By: Claude <noreply@anthropic.com >
2026-07-10 15:25:50 +08:00
Serendipity
4dc51dccd2
refactor: 将 MarkdownSplitter 移入 splitters 包,ingest.py 保留兼容 import
2026-07-10 14:15:59 +08:00
Serendipity
832201186d
fix: 修复 11 个代码架构审计问题
...
H1: AppConfig 自定义 __init__ 改用 from_dict() 类方法
H2: list_collections_with_stats 改为从 ChromaDB 直接查询
H3: RateLimiter 过期 key 自动清理, 防止内存泄漏
M1: delete_by_source 区分 ValueError 与真实异常, 记日志
M2: VectorDB 新增 list_collections() 封装方法
M3: _remove_by_source 异常记日志, 不再静默吞掉
M4: CLI 集合回退支持 MD_VECTOR_DB_COLLECTION 环境变量
L1: DEFAULT_CONFIG_PATH 自动从项目根目录解析
L2: ingest 命令内重复 import 移至模块顶部
L3: 新增死循环回归测试 + 密集分隔符分块测试
L4: 统一 logger 名称为 md-vector-db
删除旧版审计文档
测试: 48 passed
2026-07-06 13:16:26 +08:00
Serendipity
441ba8ab86
test: add DELETE endpoint tests and ingest integration tests
2026-07-05 01:46:59 +08:00
Serendipity
757bd8b336
feat: add Markdown splitter and document ingestor
...
- MarkdownSplitter: hybrid splitting by headings then paragraphs
- DocumentIngestor: read MD -> split -> embed -> store with dedup
- All 6 tests passing
2026-07-05 01:46:44 +08:00