Rust sidecar: - 新增 lancedb_update IPC 处理器 + update() 函数 - 使用 LanceDB 0.15 table.update() + SQL 表达式实现字段级更新 Go service: - Update() 方法双写:本地内存缓存 + Rust IPC 持久化 - RecallCount 和 LastRecalledAt 通过 IPC 写入 LanceDB(不再重启归零) - Dash.RecordRecall 加入 recall 回调 → recall_hit_rate 正常采集 - Search 返回时实时计算重要性得分(7维融合): 1. RecallCount → log(1+count) 对数缩放 2. LastRecalledAt → recency_factor(<7d=1, 7-30d=0.5, >30d=0.2) 3. QualityScore → 蒸馏 LLM 5维评分 4. VolatileFlag → true 时降权 50% 5. Tier 分层(core 永不衰减,预留) 6. PageRank(SQLite 图谱端,暂未连通) 7. CoOccur(内存追踪器,暂未持久化) - 召回排序权重: rerank_score×0.7 + quality_score×0.3 待处理(需跨库协调): - PageRank → Importance 联通(consolidation 周期写入) - CoOccur 持久化(SQLite 存储) |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||