110 lines
3.0 KiB
YAML
110 lines
3.0 KiB
YAML
|
|
server:
|
|||
|
|
address: ":3000"
|
|||
|
|
name: "customer-server"
|
|||
|
|
|
|||
|
|
|
|||
|
|
jwt:
|
|||
|
|
secret: "abcdefghijklmnopqrstuvwxyz"
|
|||
|
|
|
|||
|
|
rate:
|
|||
|
|
limit: 200
|
|||
|
|
burst: 300
|
|||
|
|
|
|||
|
|
# --- 华为云服务器(116.204.74.41:17027,带认证) ---
|
|||
|
|
#mongo:
|
|||
|
|
# default:
|
|||
|
|
# address: "mongodb://root:M0ng0DB%40Pass2026%21@116.204.74.41:17027?authSource=admin"
|
|||
|
|
# database: "customer_service"
|
|||
|
|
# logger:
|
|||
|
|
# level: "all"
|
|||
|
|
# stdout: true
|
|||
|
|
|
|||
|
|
# --- 内网服务器(192.168.3.200:27017,无认证) ---
|
|||
|
|
mongo:
|
|||
|
|
default:
|
|||
|
|
address: "mongodb://192.168.3.200:27017/?directConnection=true"
|
|||
|
|
database: "customer_service"
|
|||
|
|
logger:
|
|||
|
|
level: "all"
|
|||
|
|
stdout: true
|
|||
|
|
|
|||
|
|
redis:
|
|||
|
|
default:
|
|||
|
|
address: 116.204.74.41:6379
|
|||
|
|
db: 0
|
|||
|
|
idleTimeout: "60s"
|
|||
|
|
maxConnLifetime: "90s"
|
|||
|
|
waitTimeout: "60s"
|
|||
|
|
dialTimeout: "30s"
|
|||
|
|
readTimeout: "30s"
|
|||
|
|
writeTimeout: "30s"
|
|||
|
|
maxActive: 100
|
|||
|
|
|
|||
|
|
consul:
|
|||
|
|
address: 116.204.74.41:8500
|
|||
|
|
|
|||
|
|
rabbitmq:
|
|||
|
|
host: 116.204.74.41
|
|||
|
|
port: 5672
|
|||
|
|
username: root
|
|||
|
|
password: root
|
|||
|
|
# 响应队列配置(从message迁移)
|
|||
|
|
responseExchange: "ragflow.response"
|
|||
|
|
responseQueue: "ragflow.response.queue"
|
|||
|
|
responseRoutingKey: "#" # 匹配所有routing key
|
|||
|
|
# 不配置instanceName,直接使用os.Hostname()获取容器名/主机名作为实例ID
|
|||
|
|
|
|||
|
|
jaeger:
|
|||
|
|
addr: 116.204.74.41:4318
|
|||
|
|
|
|||
|
|
# RAGFlow配置(customerservice只需要base_url和api_key用于更新prompt接口)
|
|||
|
|
ragflow:
|
|||
|
|
base_url: "http://116.204.74.41"
|
|||
|
|
api_key: "ragflow-tg4BrmCIDXbZDB80JGyq1cDNFyr2_kfAEd053YuDV58"
|
|||
|
|
default_model: "qwen3-235b-a22b-instruct-2507" # 默认LLM模型,可通过Consul动态覆盖
|
|||
|
|
embedding_model: "text-embedding-v4@Tongyi-Qianwen" # embedding模型,创建知识库时使用(格式:model@factory)
|
|||
|
|
|
|||
|
|
followUp:
|
|||
|
|
enable: true
|
|||
|
|
queue: "followup.queue"
|
|||
|
|
exchange: "followup.delayed"
|
|||
|
|
routingKey: "followup"
|
|||
|
|
delays: [30, 60, 180] # 三次追问延时(秒):第一次30s,第二次60s,第三次180s
|
|||
|
|
contents:
|
|||
|
|
- "还有其他问题吗?"
|
|||
|
|
- "如果需要帮助,随时告诉我~"
|
|||
|
|
- "我一直在线,有问题随时找我~"
|
|||
|
|
|
|||
|
|
archive:
|
|||
|
|
enable: true
|
|||
|
|
queue: "archive.queue"
|
|||
|
|
exchange: "archive.delayed"
|
|||
|
|
routingKey: "archive"
|
|||
|
|
delay: 3600 # 归档延时(秒),默认1小时
|
|||
|
|
# 月度归档配置
|
|||
|
|
enabled: true # 是否启用月度归档
|
|||
|
|
cron: "0 0 0 1 * *" # 每月1号0点执行(归档上个月整月数据)
|
|||
|
|
mongoBatchSize: 1000 # 从原表复制到临时表的批量大小
|
|||
|
|
esBatchSize: 500 # 从临时表写入 ES 的批量大小
|
|||
|
|
testMode: true # 测试模式:true=归档最近7天,false=归档上个月(生产环境设为false)
|
|||
|
|
|
|||
|
|
# 卡片触发配置
|
|||
|
|
card:
|
|||
|
|
triggerCount: 5 # 触发发送卡片的对话轮数(对话>=此值时触发)
|
|||
|
|
|
|||
|
|
# 历史上下文配置
|
|||
|
|
history:
|
|||
|
|
contextLimit: 5 # 读取历史对话轮数(用于新Session上下文注入)
|
|||
|
|
|
|||
|
|
# Elasticsearch 配置
|
|||
|
|
elasticsearch:
|
|||
|
|
addresses:
|
|||
|
|
- "http://116.204.74.41:9200"
|
|||
|
|
username: ""
|
|||
|
|
password: ""
|
|||
|
|
|
|||
|
|
database:
|
|||
|
|
logger:
|
|||
|
|
level: "none" # 关闭数据库日志
|
|||
|
|
stdout: false
|