| | |
| | | # 版本 |
| | | version: ${revision} |
| | | # 版权年份 |
| | | copyrightYear: 2023 |
| | | copyrightYear: 2025 |
| | | # 实例演示开关 |
| | | demoEnabled: true |
| | | # 获取ip地址开关 |
| | |
| | | websocket: |
| | | enabled: true |
| | | # 路径 |
| | | path: '' |
| | | path: '/resource/websocket' |
| | | # 设置访问源地址 |
| | | allowedOrigins: '*' |
| | | |
| | |
| | | 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: |
| | |
| | | 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 |
| | | |