E1: remove debug fmt.Printf from ExpandFromResults, update WORKLOG

- Remove 5 residual fmt.Printf("[E1] ...") debug statements from
  SQLiteGraphStore.ExpandFromResults (graph_sqlite.go)
- Recall pipeline already has graph expansion wired via server.go:112
  (SetGraphExpander(graphStore)) — feature was implemented previously
- ExpandFromResults trigger: len(results) < 5, BFS 1-hop, dedup by ID
- Update WORKLOG: E1 completed, G6.1 cluster_only mode explained,
  G6.2/G6.3 consolidated, add cd0f898/cc615c5 commits, update 下一步
This commit is contained in:
xiaowei
2026-05-31 14:50:56 +08:00
parent cd0f898829
commit cbe4026834
2 changed files with 11 additions and 7 deletions
+11 -2
View File
@@ -9,6 +9,7 @@
| 阶段 | 状态 | 备注 |
|------|------|------|
| G1: Recall 管线 | ✅ 完成 | MMR 修复 + E1 图谱扩展 + 搜索缓存 |
| └ E1: 图谱导航激活 | ✅ 完成 | ExpandFromResults 已接入 Recall Step 5,condition=len<5 时触发 |
| G2: 本地 BGE | ✅ 完成 | 8000 端口 bge-m3,延迟 110ms |
| G3: self-metrics | ✅ 完成 | deprecated_per_day=2, auto_resolve_rate=0(无冲突是正常状态)|
| G4: WebSocket | ✅ 完成 | prefetch.push + consolidation.done 推送正常 |
@@ -20,6 +21,8 @@
## 提交记录
- `cd0f898` — G6: eps=1.0 (23 clusters), col_vector() for FixedSizeListArray reading
- `cc615c5` — docs: consolidate fix work log (2026-05-31)
- `3b031ed` — G6完整提交: skill trial路由 + LLM API key传Rust sidecar + Authorization header + reasoning_content fallback
- `e8b3a9f` — E1 RuneCount bug fix
- `f4a2c71` — MMRSelect text-based diversity
@@ -57,6 +60,13 @@
- 在 `NewAPI` 中通过 `SetPrefetchPusher` 注入
- 提交: `4f1e8d2`
### E1 图谱导航激活(2026-05-31)
- **现状**:E1 代码已全部实现并通过 `server.go:112` 接入 `RecallPipeline.SetGraphExpander(graphStore)`
- **触发条件**:`recall.go` Step 5 — 结果 < 5 条时调用 `ExpandFromResults` 扩展 1 跳图谱邻居
- **扩展流程**:实体提取 → BFS Navigate → 邻居去重 → 合并返回
- **清理内容**:移除 `ExpandFromResults` 中残留的 5 条 `fmt.Printf("[E1] ...") debug` 语句
- **下一步**:图谱节点命名规范(recall 结果实体 ↔ graph 节点名对齐)
## 验证数据
- 搜索缓存: 首次 934ms → 二次 18ms ✅
@@ -168,9 +178,8 @@ POST http://localhost:3000/v1/chat/completions # LLM 调用
## 下一步
- **E2**:多 agent 命名空间激活(hermes vs openclaw 数据隔离)
- **G7**:遗忘 + 技能系统(forgetter + agent skills)
- **G6.2**:实际 full 模式触发验证(需数据积累或手动构造测试数据)
- **G8**:备份恢复
---
## 2026-05-31 紧急修复:consolidate 服务路径冲突
-5
View File
@@ -587,11 +587,8 @@ func (gs *SQLiteGraphStore) ExpandFromResults(results []models.RecallResult, nam
}
seen[r.ID] = true
fmt.Printf("[E1] content=%q\n", r.Content)
entities := extractPotentialEntities(r.Content)
fmt.Printf("[E1] entities=%v, namespace=%q\n", entities, namespace)
for _, entity := range entities {
fmt.Printf("[E1] trying entity=%q\n", entity)
if seenEntities[entity] {
continue
}
@@ -599,9 +596,7 @@ func (gs *SQLiteGraphStore) ExpandFromResults(results []models.RecallResult, nam
// SQLite 图谱节点 ID 格式: n_{entity_name},需 normalizeEntityID 转换
nodeID := normalizeEntityID(entity)
fmt.Printf("[E1] Navigate(nodeID=%q, ns=%q)\n", nodeID, namespace)
paths, _ := gs.Navigate(nodeID, maxHops, namespace)
fmt.Printf("[E1] Navigate returned %d paths for entity=%q\n", len(paths), entity)
for _, p := range paths {
// Navigate 返回字段: from, to, relation, weight, hop
var neighbor, rel string