83 lines
3.5 KiB
YAML
83 lines
3.5 KiB
YAML
# ============================================================
|
||
# Ombre Brain Configuration / 配置文件
|
||
# Copy this file to config.yaml and modify as needed
|
||
# 复制此文件为 config.yaml 后按需修改
|
||
# ============================================================
|
||
|
||
# --- Transport / 传输方式 ---
|
||
# stdio: local use (Claude Desktop, direct pipe)
|
||
# streamable-http: remote use (HTTP, tunnel/CDN/proxy friendly)
|
||
# stdio: 本地使用(Claude Desktop,直接管道通信)
|
||
# streamable-http: 远程使用(标准 HTTP,对隧道/CDN/代理友好)
|
||
transport: "stdio"
|
||
|
||
# --- Log level / 日志级别 ---
|
||
log_level: "INFO"
|
||
|
||
# --- Bucket storage path / 记忆桶存储路径 ---
|
||
# Point this to your Obsidian vault subdirectory, or any local folder
|
||
# 指向你的 Obsidian 仓库子目录,或任意本地文件夹
|
||
# Leave as-is to use the built-in ./buckets/ directory
|
||
# 保持默认则使用内置的 ./buckets/ 目录
|
||
# buckets_dir: "/path/to/your/Obsidian Vault/Ombre Brain"
|
||
|
||
# --- Merge threshold / 桶合并阈值 ---
|
||
# When storing a new memory, if similarity with an existing bucket exceeds
|
||
# this value (0-100), merge instead of creating a new one
|
||
# 存新记忆时,如果与已有桶的相似度超过此值(0-100),则合并而非新建
|
||
merge_threshold: 75
|
||
|
||
# --- Dehydration API / 脱水压缩 API 配置 ---
|
||
# Uses a cheap LLM for intelligent compression; auto-degrades to local
|
||
# keyword extraction if API is unavailable
|
||
# 用廉价 LLM 做智能压缩,API 不可用时自动降级到本地关键词提取
|
||
dehydration:
|
||
# Supports any OpenAI-compatible API: DeepSeek / Ollama / LM Studio / vLLM / Gemini etc.
|
||
# 支持所有 OpenAI 兼容 API:DeepSeek / Ollama / LM Studio / vLLM / Gemini 等
|
||
model: "deepseek-chat"
|
||
base_url: "https://api.deepseek.com/v1"
|
||
# Common base_url examples / 常见 base_url 示例:
|
||
# DeepSeek: https://api.deepseek.com/v1
|
||
# SiliconFlow: https://api.siliconflow.cn/v1
|
||
# Ollama: http://localhost:11434/v1
|
||
# LM Studio: http://localhost:1234/v1
|
||
# vLLM: http://localhost:8000/v1
|
||
# Gemini: https://generativelanguage.googleapis.com/v1beta/openai
|
||
# api_key: "" # ⚠️ Use env var OMBRE_API_KEY instead / 请使用环境变量 OMBRE_API_KEY
|
||
max_tokens: 1024
|
||
temperature: 0.1
|
||
|
||
# --- Decay parameters / 记忆衰减参数 ---
|
||
# Simulates Ebbinghaus forgetting curve, auto-archives inactive memories
|
||
# 模拟艾宾浩斯遗忘曲线,自动归档不活跃的记忆
|
||
decay:
|
||
lambda: 0.05 # Decay rate / 衰减速率(越大遗忘越快)
|
||
threshold: 0.3 # Archive threshold / 归档阈值
|
||
check_interval_hours: 24 # Check interval (hours) / 衰减检查间隔(小时)
|
||
emotion_weights:
|
||
base: 1.0 # Base weight / 基础权重
|
||
arousal_boost: 0.8 # Arousal boost coefficient / 唤醒度加成系数
|
||
|
||
# --- Scoring weights / 检索权重参数 ---
|
||
# total = topic(×4) + emotion(×2) + time(×1.5) + importance(×1)
|
||
scoring_weights:
|
||
topic_relevance: 4.0
|
||
emotion_resonance: 2.0
|
||
time_proximity: 1.5
|
||
importance: 1.0
|
||
|
||
# --- Fuzzy matching / 模糊匹配参数 ---
|
||
matching:
|
||
fuzzy_threshold: 50 # Minimum match score (0-100) / 最低匹配分数
|
||
max_results: 5 # Max results per search / 单次搜索最多返回条数
|
||
|
||
# --- Obsidian wikilinks / Obsidian 双链自动注入 ---
|
||
wikilink:
|
||
enabled: true
|
||
use_tags: false
|
||
use_domain: true
|
||
use_auto_keywords: true
|
||
auto_top_k: 8
|
||
min_keyword_len: 2
|
||
exclude_keywords: []
|