feat(知识库): 增加知识库模块

This commit is contained in:
ageer
2025-03-02 11:19:29 +08:00
parent 04f579d033
commit 1385b165c9
1421 changed files with 166583 additions and 64636 deletions

View File

@@ -6,7 +6,7 @@ ruoyi:
# 版本
version: ${revision}
# 版权年份
copyrightYear: 2023
copyrightYear: 2025
# 实例演示开关
demoEnabled: true
# 获取ip地址开关
@@ -294,7 +294,7 @@ management:
websocket:
enabled: true
# 路径
path: ''
path: '/resource/websocket'
# 设置访问源地址
allowedOrigins: '*'
@@ -308,28 +308,34 @@ wx:
aesKey: #微信小程序消息服务器配置的EncodingAESKey
msgDataFormat: JSON
# 企业微信应用
wechat:
# 是否使用微信 true/false
enable: true
# 生成的登录二维码路径 默认与项目同级
qrPath: "./"
# 企业微信应用
cp:
corpId:
appConfigs:
- agentId:
secret: ''
token: ''
aesKey: ''
# 知识库配置
chain:
split:
chunk:
endspliter: "<STOP>"
# 分块文本大小
size: 500
overlay: 0
qaspliter: "######"
size: 200
overlay: 30
qaspliter: "###"
# 知识库中检索的条数
limits: 5
vectorization:
type: openai
openai:
model: 'text-embedding-3-small'
baidu:
model: bge-large-zh
zhipu:
model: embedding-2
# 智普API KEY
token: xx
vector:
model: 'text-embedding-3-small'
store:
type: weaviate
weaviate:
@@ -341,38 +347,4 @@ chain:
port: 19530
dimension: 1536
collection: LocalKnowledge
llm:
openai:
token: sk-xx
model: gpt-4-1106-preview
chatglm:
baseurl: http://127.0.0.1:8000/
model: chatglm2-6b
baidu:
appKey: xx
secretKey: xx
model: ernie_bot
zhipu:
model: glm-4
audio:
type: openai
text:
type: openai
function:
type: baidu
vision:
type: openai
image:
type: openai
upload:
path: /data/upload
proxy:
socket:
host: 127.0.0.1
port: 7890
resource:
domain: http://127.0.0.1:${server.port}/resources