feat(memory-source): commit→distill→memories.source→recall 打通来源(集合笔记路径)

This commit is contained in:
小唯
2026-09-26 21:35:29 +08:00
parent fee8baaefb
commit 8026142a08
3 changed files with 2 additions and 1 deletions
BIN
View File
Binary file not shown.
+1
View File
@@ -94,6 +94,7 @@ type RecallResult struct {
// omitempty:旧调用方无感;图谱扩展路径(graph_*.go)无 ns 概念,留空。
Namespace string `json:"namespace,omitempty"`
AgentID string `json:"agent_id,omitempty"`
Source string `json:"source,omitempty"`
}
// RerankResult rerank 重排后的单条结果。
+1 -1
View File
@@ -155,7 +155,7 @@ func (rc *RustLanceDBClient) InsertMemory(m models.MemoryRecord) error {
"tier": m.Tier, "importance": 1.0, "quality_score": m.QualityScore,
"recall_count": m.RecallCount, "useful_count": 0, "not_useful_count": 0,
"freshness": m.Freshness, "version": 1, "version_history": "[]",
"source": "", "volatile_flag": false, "is_deleted": m.IsDeleted,
"source": m.Source, "volatile_flag": false, "is_deleted": m.IsDeleted,
"depends_on": "[]", "derived_from": "", "last_recalled_at": "",
"created_at": m.CreatedAt.Format(time.RFC3339),
"updated_at": m.UpdatedAt.Format(time.RFC3339),