-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconf.yaml
More file actions
52 lines (44 loc) · 1.63 KB
/
Copy pathconf.yaml
File metadata and controls
52 lines (44 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# RAG Engine 系统配置文件
# 静态配置,不包含敏感信息
# 服务配置
server:
port: "9999" # HTTP 服务端口
read_timeout: 30 # 读取超时(秒)
write_timeout: 30 # 写入超时(秒)
shutdown_timeout: 10 # 优雅关闭超时(秒)
# 日志配置
log:
level: "info" # 日志级别:debug, info, warn, error
format: "json" # 日志格式:json, console
output: "stdout" # 输出:stdout, stderr, file
file_path: "./logs/app.log" # 日志文件路径(当 output=file 时)
# Embedding 配置
embedding:
model: "bge-m3" # 使用的模型
dimension: 1024 # 向量维度
batch_size: 32 # 批处理大小
timeout: 30 # 请求超时(秒)
# RAG 配置
rag:
default_top_k: 5 # 默认检索文档数量
similarity_threshold: 0.7 # 相似度阈值
max_context_length: 4000 # 最大上下文长度(字符)
# 全局特性开关(可被 Profile 覆盖)
enable_rag: false # 是否启用检索增强(false 则直接对话)
enable_memory: true # 是否启用会话记忆
# Session 配置
session:
ttl: 3600 # 会话过期时间(秒)
max_history: 10 # 最大历史消息数
enabled: true # 是否启用会话管理
# 文档处理配置
document:
default_chunk_size: 800 # 默认分块大小
default_chunk_overlap: 100 # 默认重叠大小
supported_formats:
- pdf
- txt
- docx
# Eino 配置
eino:
log_level: "info" # Eino 日志级别:debug, info, warn, error