From cb72759b568baf34281bd15f821ac9834c17bbb9 Mon Sep 17 00:00:00 2001
From: ai_xiaopei <xiaopei@aisim.cn>
Date: Thu, 03 Sep 2026 14:24:29 +0800
Subject: [PATCH] merge: 合并 origin/master schema v2 重构(RWR/增量对账/explore),保留 tag/entity 实验于 experiment 分支 + 本地 expandPath 修复与 draft list 过滤
---
internal/llm/client.go | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/internal/llm/client.go b/internal/llm/client.go
index 883cc63..44ff58b 100644
--- a/internal/llm/client.go
+++ b/internal/llm/client.go
@@ -39,6 +39,16 @@
ReviewDir string `yaml:"review_dir"`
DefaultType string `yaml:"default_type"`
} `yaml:"draft"`
+ // Search 搜索配置(双信号加权权重)
+ Search struct {
+ TextWeight float64 `yaml:"text_weight"` // 文本分权重(0~1,缺省 0.5)
+ } `yaml:"search"`
+ // Explore 探索预算配置(Task 7 预留)
+ Explore struct {
+ DefaultBudget int `yaml:"default_budget"`
+ HardBudget int `yaml:"hard_budget"`
+ TopN int `yaml:"top_n"`
+ } `yaml:"explore"`
}
// Client LLM 客户端
@@ -124,8 +134,9 @@
config.LLM.Primary.Temperature = 0.3
config.LLM.Primary.MaxTokens = 2000
config.LLM.Primary.DisableThinking = true
- config.KnowledgeBase.VaultPath = "~/aisim/note/001/笔记001"
- config.KnowledgeBase.DBPath = "~/.cache/kb-cli/kb.db"
+ // 默认路径同样经过 expandPath 展开,与成功加载分支保持一致
+ config.KnowledgeBase.VaultPath = expandPath("~/aisim/note/001/笔记001")
+ config.KnowledgeBase.DBPath = expandPath("~/.cache/kb-cli/kb.db")
config.Draft.ReviewDir = "待审阅"
config.Draft.DefaultType = "售后"
return config
--
Gitblit v1.10.0