You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
# mem0 Integration Configuration - 张大师专用
|
|
|
|
|
# Agent ID: life (生活与运程助手)
|
|
|
|
|
# 用户生辰:1984 年 5 月 16 日 23:00-24:00 (子时)
|
|
|
|
|
# 架构:单库融合 + 元数据标签软隔离 (agent_id: "life")
|
|
|
|
|
|
|
|
|
|
# 全局 Qdrant 配置(所有 Agent 共享同一个 Collection)
|
|
|
|
|
global:
|
|
|
|
|
vector_store:
|
|
|
|
|
provider: qdrant
|
|
|
|
|
config:
|
|
|
|
|
host: localhost
|
|
|
|
|
port: 6333
|
|
|
|
|
collection_name: mem0_global_v4 # 唯一全局 Collection,通过 agent_id 区分
|
|
|
|
|
|
|
|
|
|
llm:
|
|
|
|
|
provider: openai
|
|
|
|
|
config:
|
|
|
|
|
model: qwen-plus
|
|
|
|
|
api_base: https://dashscope.aliyuncs.com/compatible-mode/v1
|
|
|
|
|
api_key: ${DASHSCOPE_API_KEY}
|
|
|
|
|
|
|
|
|
|
embedder:
|
|
|
|
|
provider: openai
|
|
|
|
|
config:
|
|
|
|
|
model: text-embedding-v4 # Gemini Pro Embedding (1024 维度)
|
|
|
|
|
api_base: https://dashscope.aliyuncs.com/compatible-mode/v1
|
|
|
|
|
api_key: ${DASHSCOPE_API_KEY}
|
|
|
|
|
|
|
|
|
|
# 同步配置
|
|
|
|
|
sync:
|
|
|
|
|
enabled: true
|
|
|
|
|
interval: 300
|
|
|
|
|
batch_size: 50
|
|
|
|
|
retry_attempts: 3
|
|
|
|
|
|
|
|
|
|
# 缓存配置
|
|
|
|
|
cache:
|
|
|
|
|
enabled: true
|
|
|
|
|
ttl: 300
|
|
|
|
|
max_size: 1000
|
|
|
|
|
|
|
|
|
|
# 元数据隔离
|
|
|
|
|
metadata:
|
|
|
|
|
user_id: wang_yuanzhang
|
|
|
|
|
agent_id: life
|
|
|
|
|
user_profile:
|
|
|
|
|
birthday: "1984-05-16"
|
|
|
|
|
birth_time: "23:00-24:00"
|
|
|
|
|
chinese_zodiac: "鼠"
|
|
|
|
|
birth_hour: "子时"
|
|
|
|
|
timezone: "Asia/Shanghai"
|