xiaowei 9d2bae3324 feat: 自优化7项全部补齐
P0: avg_distill_loss 接入 Dashboard
- RecordDistillLoss(loss) 在蒸馏回调中写入 Dash
- loss = 1 - Overall, 归一化 0-1

P1: V 值反哺召回排序
- storage.VValueProvider 注入(server.go → VProp.GetMemVValue)
- lancedb_ipc.go Search() 排序公式:30%V值+30%importance+40%QL

P1: PassiveValidator 写回 quality_score
- 蒸馏回调中 GetRecords() 遍历并 ldb.Update quality_score

P2: CausalTracker Redis 持久化 + 自动触发
- EnableCausalRedisPersistence() 启动加载
- persistCausal() 每次 RecordVersion/AddDependency 后同步
- commit 路径自动 RecordVersion(memID, content, agent, 'commit')

P2: GapDetector 自动 repair
- t_gap 触发器除关闭过期缺口外,对开放缺口调用 AutoRepair
- 修复成功后 RecordGapClosed

P3: Skill 结晶接入
- RecordTrial(name, success) 程序化接口
- 蒸馏/合并触发器中 RecordTrial('auto_distill', true)

P3: 指标采集 6h → 30min

测试: 全部重启持久化验证通过
2026-05-30 12:08:16 +08:00
2026-05-30 12:08:16 +08:00

织忆 (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 推理

仓库

Gitea: http://192.168.123.11:3000/xiaoxue_admin/memoryweave

S
Description
织忆 MemoryWeave 记忆基础设施 — Go + Rust 双二进制架构
Readme
144 MiB
Languages
Python 62.3%
Go 31.9%
Rust 2.7%
TypeScript 1.1%
Shell 1.1%
Other 0.9%