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 # 请求失败最大重试次数 # 数据集默认值(新建数据集传 0/-1 时使用,数据集内可覆盖) chunk: default_size: 800 # 分块最大字数 default_overlap: 150 # 分块重叠字数 react: default_rounds: 0 # 智能体轮次(0=关闭) # 协程池配置(各并行点并发度,缺失或 <1 时回退代码内默认值) pool: kg_extract: 8 # 知识图谱:逐 chunk LLM 抽取(增加并发数加快构建速度) annotation_clause: 4 # 合同标注:逐条款 (recall+judge) annotation_dataset: 8 # 条款内:逐 dataset 召回 chat: 4 # 问答:retrieve 与 GraphEnhance 并行 chat_retrieve: 4 # 检索:vec 与 fts 并行