Commit Graph
3 Commits
Author SHA1 Message Date
小唯 8026142a08 feat(memory-source): commit→distill→memories.source→recall 打通来源(集合笔记路径) 2026-09-26 21:35:29 +08:00
xiaoyi 7c0affde65 recall: RecallResult 带 namespace/agent_id 来源(全库召回可分辨归属域)
背景:09-22 把 daemon 召回作用域放开到全库(金标 ID 命中 8/14 → 12/14),
但 recall 返回体只有 id/content/category/score/timestamp,调用方无法分辨
某条记忆属于哪个域,会把分身的私有记忆当成自己的用。

改动:
- models.RecallResult 加 Namespace / AgentID(json omitempty,旧调用方无感)
- recall.go 主路径构造点带上 c.Namespace / c.AgentID(MemoryRecord 本就有这两个字段)

图谱扩展路径(graph_*.go)无 ns 概念,留空由调用方处理。

验证:go build ./... OK / go vet OK / internal/storage 测试 OK。
注:internal/api/routes 的 TestCommitConflictGate_E2E 为既有失败(改动前同样 FAIL,已用 git stash 证伪)。
2026-09-22 09:32:44 +08:00
xiaowei 2a350cf781 fix(distill): max_tokens 800→1200 — Agnes推理token预算不足
Agnes 2.0-flash是推理模型,推理token占大量预算。
800仍不够→JSON截断(parse error: unexpected end of JSON input)。
1200确保推理+正文都够用。
2026-08-20 01:13:06 +08:00