88 lines
2.8 KiB
YAML
88 lines
2.8 KiB
YAML
server:
|
|
port: 8900
|
|
servlet:
|
|
context-path: /snail-ai
|
|
|
|
spring:
|
|
application:
|
|
name: ruoyi-snailai-server
|
|
profiles:
|
|
active: @profiles.active@
|
|
servlet:
|
|
multipart:
|
|
enabled: true
|
|
# 单个文件的最大限制 (根据 RAG 需求建议设为 50MB - 100MB)
|
|
max-file-size: 50MB
|
|
# 单次请求的总文件大小限制 (如果支持多文件并行上传,调大此项)
|
|
max-request-size: 100MB
|
|
web:
|
|
resources:
|
|
static-locations: classpath:admin/
|
|
|
|
snail-ai:
|
|
server:
|
|
grpc-port: 18888
|
|
skill:
|
|
upload-dir: ./upload/skills
|
|
crypto:
|
|
secret-key: ${SNAIL_AI_CRYPTO_KEY:0123456789abcdef0123456789abcdef}
|
|
iv: ${SNAIL_AI_CRYPTO_IV:fedcba9876543210fedcba9876543210}
|
|
resource:
|
|
storage-type: LOCAL
|
|
upload-dir: ./upload/resource
|
|
minio:
|
|
endpoint: http://localhost:9000
|
|
access-key: minioadmin
|
|
secret-key: minioadmin
|
|
bucket: snail-ai
|
|
# RAG 文档解析与图片 OCR 配置
|
|
rag:
|
|
docling:
|
|
enabled: ${SNAIL_AI_RAG_DOCLING_ENABLED:true}
|
|
url: ${SNAIL_AI_RAG_DOCLING_URL:http://127.0.0.1:5100}
|
|
timeout-seconds: ${SNAIL_AI_RAG_DOCLING_TIMEOUT_SECONDS:300}
|
|
concurrency: ${SNAIL_AI_RAG_DOCLING_CONCURRENCY:3}
|
|
health-timeout-millis: ${SNAIL_AI_RAG_DOCLING_HEALTH_TIMEOUT_MILLIS:3000}
|
|
poll-interval-millis: ${SNAIL_AI_RAG_DOCLING_POLL_INTERVAL_MILLIS:3000}
|
|
status-timeout-millis: ${SNAIL_AI_RAG_DOCLING_STATUS_TIMEOUT_MILLIS:10000}
|
|
result-timeout-millis: ${SNAIL_AI_RAG_DOCLING_RESULT_TIMEOUT_MILLIS:30000}
|
|
max-image-count: ${SNAIL_AI_RAG_DOCLING_MAX_IMAGE_COUNT:100}
|
|
max-image-bytes: ${SNAIL_AI_RAG_DOCLING_MAX_IMAGE_BYTES:10485760}
|
|
paddle-ocr-enabled: ${SNAIL_AI_RAG_DOCLING_PADDLE_OCR_ENABLED:true}
|
|
paddle-ocr-url: ${SNAIL_AI_RAG_DOCLING_PADDLE_OCR_URL:http://127.0.0.1:8866/ocr}
|
|
paddle-ocr-timeout-millis: ${SNAIL_AI_RAG_DOCLING_PADDLE_OCR_TIMEOUT_MILLIS:180000}
|
|
paddle-ocr-batch-size: ${SNAIL_AI_RAG_DOCLING_PADDLE_OCR_BATCH_SIZE:5}
|
|
vision-ocr-fallback-enabled: ${SNAIL_AI_RAG_DOCLING_VISION_OCR_FALLBACK_ENABLED:false}
|
|
# 短期记忆配置
|
|
memory:
|
|
short-term:
|
|
# 存储类型选项: memory(内存) | db(数据库)
|
|
# - memory: 适用于单机部署,高性能,重启后数据丢失
|
|
# - db: 适用于分布式部署,数据持久化,性能较低
|
|
store-type: db
|
|
|
|
mybatis-plus:
|
|
typeAliasesPackage: com.aizuda.snail.ai.persistence
|
|
global-config:
|
|
db-config:
|
|
capital-mode: false
|
|
logic-delete-value: 1
|
|
logic-not-delete-value: 0
|
|
configuration:
|
|
map-underscore-to-camel-case: true
|
|
cache-enabled: true
|
|
|
|
logging:
|
|
config: classpath:logback-plus.xml
|
|
|
|
management:
|
|
endpoints:
|
|
web:
|
|
exposure:
|
|
include: '*'
|
|
endpoint:
|
|
health:
|
|
show-details: ALWAYS
|
|
logfile:
|
|
external-file: ./logs/ruoyi-snailai-server/console.log
|