memoryweave/rust/src
xiaowei 02eef1024d feat(Rust): zhiyi-consolidate 整合引擎 — DBSCAN + 衰减回归 + 质量回溯
Rust sidecar (232行): 纯 std + serde + clap,无 async
- DBSCAN 聚类: cosine_sim + 邻居扩展 (20簇/132噪点)
- 衰减回归: 按类别线性拟合,clamp(0.005, 0.05)
- 质量回溯: 信息密度检测
- 输出: stdout JSON,stderr 日志

Go consolidate 客户端: exec Rust 二进制,提取 JSON
server.go: 注册 /api/v1/admin/consolidate

验证:
- Go→Rust consolidate?mode=full → 200 OK 
- 923 distilled, 535 vectors, 20 clusters, 132 noise
2026-05-28 18:08:06 +08:00
..
main.rs feat(Rust): zhiyi-consolidate 整合引擎 — DBSCAN + 衰减回归 + 质量回溯 2026-05-28 18:08:06 +08:00