Files
rag-local/config.yml
T
2026-08-05 10:28:44 +08:00

31 lines
841 B
YAML

database:
default:
name: data/business.db
type: sqlite
debug: false
system:
name: data/system.db
type: sqlite
debug: false
chat:
name: data/chat.db
type: sqlite
debug: false
cache:
ttl: 60 # DAO查询缓存时间(秒),0为禁用缓存
server:
address: :8080
name: rag-local
workerId: 1
clientMaxBodySize: 209715200 # 200MB 上传文件限制
requestTimeout: 3000 # HTTP请求超时(秒),支持 AI 长响应
# 向量配置
vector:
dim: 1024 # 向量维度(须与所用 embedding 模型一致,变更需清库重建)
# AI模型调用配置
chat:
timeout: 600 # 对话模型API请求超时时间(秒)
max_retries: 3 # 请求失败最大重试次数