Files
memory-gateway/config.example.yaml
2026-05-05 16:18:31 +08:00

65 lines
1.8 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Memory Gateway 配置示例
# 复制为 config.yaml 并根据实际情况修改
# Memory Gateway 服务配置
server:
# 监听地址0.0.0.0 表示接受所有网卡(局域网可访问)
host: "0.0.0.0"
# MCP Server 端口
port: 1934
# 可选API Key 认证,客户端需要提供相同的 Key
api_key: ""
# OpenViking 后端配置
openviking:
# OpenViking 服务器地址
url: "http://localhost:1933"
# OpenViking API Key如有
api_key: ""
# 请求超时时间(秒)
timeout: 30
# EverMemOS 后台长期记忆整理服务
evermemos:
enabled: true
url: "http://127.0.0.1:1995"
api_key: ""
timeout: 30
health_path: "/health"
# 如果远端服务实际 endpoint 不同,改这里即可,不需要改代码。
consolidate_path: "/v1/sessions/consolidate"
# POC 默认允许远端不可用时用本地确定性 worker 降级,方便开发测试。
fallback_to_local: true
# 记忆配置
memory:
# 默认命名空间
default_namespace: "memory-gateway"
# 默认搜索返回数量
search_limit: 10
# 日志配置
logging:
level: "INFO"
format: "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
# LLM 配置:用于 /api/summary 和 /api/knowledge/upload
# 兼容 OpenAI Chat Completions API也可指向本地 vLLM / Ollama OpenAI-compatible endpoint。
llm:
base_url: "https://api.openai.com/v1"
api_key: ""
model: ""
timeout: 60
max_input_chars: 24000
# Obsidian 配置:用于 /api/knowledge/upload 保存 Markdown 笔记
obsidian:
vault_path: "/home/tom/memory-gateway/obsidian-vault"
knowledge_dir: "01_Knowledge/Uploaded"
review_dir: "Reviews/Queue"
# v1 metadata storage. Use "memory" only for isolated unit tests.
storage:
backend: "sqlite"
sqlite_path: "/home/tom/memory-gateway/memory_gateway.sqlite3"