memoryweave/carriers/shared/learnings.md

17 lines
907 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Learnings — 学习成果
> 从项目实施中积累的经验教训
## 技术选型
1. **Go 标准库足够强大** — 零外部依赖策略可行,手写 Redis/SQLite 客户端虽然大但稳定性好
2. **ONNX 比 vLLM 更适合边缘设备** — RTX 3050 4GB 跑 vLLM 吃内存ONNX 43ms 推理更实用
3. **文件图谱比内存图谱更可靠** — 进程重启不丢图数据JSON 序列化在 10000 节点以下够快
4. **Rust sidecar 虽然重但必要** — DBSCAN/衰减回归等计算密集型工作交给 Rust 是正确的
## 架构决策
1. **统一记忆 (v3.9) 应尽早实施** — 三系统 (Hermes/OpenClaw/织忆) 各自维护本地 LanceDB 是技术债务
2. **CO_OCCURS 预取必须持久化** — 内存统计重启丢失,需要写入 Redis/SQLite
3. **蒸馏质量回溯比精确蒸馏更重要** — 知道"丢了什么信息"比知道"蒸馏了什么"更有价值