memoryweave/go/internal/api
xiaowei 36af93055f fix: 蒸馏产物不回写记忆库,OnDistillComplete缺InsertMemory
蒸馏引擎跑完后结果只进了图谱(SQLite)没有写回LanceDB记忆库。
OnDistillComplete回调中有graphUpdater.UpdateFromDistill()
和冲突检测,但没有将extracted facts作为distilled类别记忆
写入memories表。

修复:在server.go的OnDistillComplete回调中添加
ldb.InsertMemory循环,将result.Facts逐条写入LanceDB。
同时添加models import。

验证:
- force distill -> 5条distilled记忆写入,评分0.828-0.987
- 时间戳正确,category=distilled
- recall可通过category过滤获取蒸馏产物
2026-05-30 10:41:42 +08:00
..
middleware feat: add static file bypass auth + graph.html API_BASE fix 2026-05-29 21:59:41 +08:00
routes v3.8-graph: P0-P6 图谱增强 2026-05-30 05:23:15 +08:00
server.go fix: 蒸馏产物不回写记忆库,OnDistillComplete缺InsertMemory 2026-05-30 10:41:42 +08:00