改动: - G1.3: graph/navigate API 新增 source+target 参数,调用 NavigateBiDir 双向 BFS - G1.4: recall pipeline 新增 Step 0 搜索缓存检查 + Step 6.5 缓存写入 缓存 TTL 1h,相同 query+namespace 跳过完整管线直接返回 - MMR 多样性去重(G1.1)+ 多跳图谱扩展(G1.2)已在上次提交中存在 测试:双向 BFS 返回 9 条路径,bidirectional=true;缓存命中测试通过 |
||
|---|---|---|
| .github/workflows | ||
| .venv | ||
| backups | ||
| carriers/shared | ||
| deploy | ||
| go | ||
| openclaw-zhiyi-plugin | ||
| proto | ||
| rust | ||
| scripts | ||
| .gitignore | ||
| BENCHMARK.md | ||
| DESIGN.md | ||
| IMPLEMENTATION.md | ||
| Makefile | ||
| README.md | ||
| REPAIR-FULL.md | ||
| REPAIR-PLAN.md | ||
| VERSION | ||
README.md
织忆 (MemoryWeave) — 独立记忆基础设施
Go + Rust 双二进制架构 | port 7821 | 版本 v0.1.0-dev
织忆是多 Agent 系统的共享记忆层。
zhiyid (Go daemon, port 7821)
├── REST API / WebSocket
├── 蒸馏引擎 / 冲突治理
├── Redis 事件流
└── 调用 zhiyi-consolidate
zhiyi-consolidate (Rust binary, systemd timer)
├── LanceDB 原生读写
├── DBSCAN 聚类 / 衰减回归
├── Embedding + Rerank 管线
└── → 结果写回 LanceDB
快速开始
# 构建
make build
# 安装
sudo make install
# 验证
curl http://localhost:7821/health
文档
语言分工
| 组件 | 语言 | 原因 |
|---|---|---|
| HTTP API + 业务逻辑 | Go | goroutine 高并发,单二进制 |
| LanceDB + 向量管线 | Rust | 原生 lancedb crate,零 FFI |
| Embedding/Rerank | Rust | Candle/ort 推理 |