| | |
| | | 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 客户端 |
| | |
| | | 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 |