feat(ai): 新增AI模块功能
- 添加Ollama配置参数,包括基础URL、模型设置、超时配置等 - 创建AI知识库相关数据库表(文档表和分段表) - 实现AI数据分析服务,支持订单数据查询和分析 - 开发AI聊天控制器,提供模型列表、对话和流式对话功能 - 构建知识库RAG服务,支持文档上传、CMS同步和问答功能 - 添加多种AI相关的DTO类和实体类 - 实现AI嵌入向量计算和相似度匹配算法 - 集成Tika用于文档内容提取和解析
This commit is contained in:
@@ -4,7 +4,7 @@ server:
|
||||
# 多环境配置
|
||||
spring:
|
||||
profiles:
|
||||
active: ysb2
|
||||
active: dev
|
||||
|
||||
application:
|
||||
name: server
|
||||
@@ -201,6 +201,22 @@ springdoc:
|
||||
swagger-ui:
|
||||
enabled: true
|
||||
|
||||
# AI 模块(Ollama)
|
||||
ai:
|
||||
ollama:
|
||||
base-url: https://ai-api.websoft.top
|
||||
fallback-url: http://47.119.165.234:11434
|
||||
chat-model: qwen3.5:cloud
|
||||
embed-model: qwen3-embedding:4b
|
||||
connect-timeout-ms: 10000
|
||||
read-timeout-ms: 300000
|
||||
write-timeout-ms: 60000
|
||||
max-concurrency: 4
|
||||
rag-max-candidates: 2000
|
||||
rag-top-k: 5
|
||||
rag-chunk-size: 800
|
||||
rag-chunk-overlap: 120
|
||||
|
||||
# LED - 排班接口(业务中台)对接配置
|
||||
led:
|
||||
bme:
|
||||
|
||||
Reference in New Issue
Block a user