Files
rag-local/config.yml
T
2026-08-06 14:25:03 +08:00

39 lines
1.4 KiB
YAML

database:
default:
name: data/business.db
type: sqlite
debug: true # 控制台打印所有 SQL 查询
system:
name: data/system.db
type: sqlite
debug: true # 控制台打印所有 SQL 查询
chat:
name: data/chat.db
type: sqlite
debug: true # 控制台打印所有 SQL 查询
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 # 请求失败最大重试次数
# 协程池配置(各并行点并发度,缺失或 <1 时回退代码内默认值)
pool:
kg_extract: 4 # 知识图谱:逐 chunk LLM 抽取
annotation_clause: 4 # 合同标注:逐条款 (recall+judge)
annotation_dataset: 8 # 条款内:逐 dataset 召回
chat: 4 # 问答:retrieve 与 GraphEnhance 并行
chat_retrieve: 4 # 检索:vec 与 fts 并行