更新指南
可直接升级v4.9.3,4.9.2存在一个工作流数据类型转化错误。
1. 做好数据库备份
2. SSO 迁移
使用了 SSO 或成员同步的商业版用户,并且是对接钉钉
、企微
的,需要迁移已有的 SSO 相关配置:
参考:SSO & 外部成员同步中的配置进行sso-service
的部署和配置。
- 先将原商业版后台中的相关配置项复制备份出来(以企微为例,将 AppId, Secret 等复制出来)再进行镜像升级。
- 参考上述文档,部署 SSO 服务,配置相关的环境变量
- 如果原先使用企微组织架构同步的用户,升级完镜像后,需要在商业版后台切换团队模式为“同步模式”
3. 配置参数变更
修改config.json
文件中systemEnv.pgHNSWEfSearch
参数名,改成hnswEfSearch
。
商业版用户升级镜像后,直接在后台系统配置-基础配置
中进行变更。
4. 更新镜像
- 更新 FastGPT 镜像 tag: v4.9.2
- 更新 FastGPT 商业版镜像 tag: v4.9.2
- Sandbox 镜像,可以不更新
- AIProxy 镜像修改为: registry.cn-hangzhou.aliyuncs.com/labring/aiproxy:v0.1.4
其他重要提示
- 知识库导入数据 API 变更,增加
chunkSettingMode
,chunkSplitMode
,indexSize
可选参数。
🚀 新增内容
- 知识库分块优化:支持单独配置分块大小和索引大小,允许进行超大分块,以增大输入 Tokens 提高完整分块的概率。 @c121914yu
- 知识库分块增加自定义分隔符预设值,同时支持自定义换行符分割。 @c121914yu
- 外部变量改名:自定义变量。 并且支持在测试时调试,在分享链接中,该变量直接隐藏。 @newfish-cmyk
- 集合同步时,支持同步修改标题。 @c121914yu
- 团队成员管理重构,抽离主流 IM SSO(企微、飞书、钉钉),并支持通过自定义 SSO 接入 FastGPT。同时完善与外部系统的成员同步。 @FinleyGe
- 基于 mistral-ocr 的 PDF 解析示例。 @lzs2000131
- 基于 miner-u 的 PDF 解析示例。 @fangqiluxatu
- 支持
oceanbase
向量数据库。填写环境变量OCEANBASE_URL
即可。 @dengfuping
⚙️ 优化
- 导出对话日志时,支持导出成员名。 @newfish-cmyk
- 邀请链接交互。 @gggaaallleee
- 无 SSL 证书时复制失败,会提示弹窗用于手动复制。 @c121914yu
- FastGPT 未内置 ai proxy 渠道时,也能正常展示其名称。 @c121914yu
- 升级 nextjs 版本至 14.2.25。 @c121914yu
- 工作流节点数组字符串类型,自动适配 string 输入。 @c121914yu
- 工作流节点数组类型,自动进行 JSON parse 解析 string 输入。 @c121914yu
- AI proxy 日志优化,去除重试失败的日志,仅保留最后一份错误日志。 @c121914yu
- 个人信息和通知展示优化。 @gggaaallleee
- 模型测试 loading 动画优化。 @sd0ric4
- 分块算法小调整: @c121914yu
- 跨处理符号之间连续性更强。
- 代码块分割时,用 LLM 模型上下文作为分块大小,尽可能保证代码块完整性。
- 表格分割时,用 LLM 模型上下文作为分块大小,尽可能保证表格完整性。
🐛 修复
- 飞书和语雀知识库无法同步。 @c121914yu
- 渠道测试时,如果配置了模型自定义请求地址,会走自定义请求地址,而不是渠道请求地址。 @c121914yu
- 语音识别模型测试未启用的模型时,无法正常测试。 @c121914yu
- 管理员配置系统插件时,如果插件包含其他系统应用,无法正常鉴权。 @c121914yu
- 移除 TTS 自定义请求地址时,必须需要填 requestAuth 字段。 @c121914yu
What's Changed
- version doc by @c121914yu in #4013
- 翻译缺失 by @ENg-122 in #4010
- Update official_account.md by @c121914yu in #4021
- Update 490.md by @c121914yu in #4022
- 更新 4820.md by @c121914yu in #4028
- fix: 修复知识库问题优化无效的BUG by @PairZhu in #4033
- fix: 修复部分参数丢失的问题 by @PairZhu in #4040
- fix: 修复最大响应 tokens 提示显示错误的问题 by @PairZhu in #4048
- perf: HTTP node jsonBody support \n by @c121914yu in #4070
- chore(deps): bump jsonpath-plus from 10.1.0 to 10.3.0 by @dependabot in #4089
- chore(deps): bump axios from 1.7.2 to 1.8.2 by @dependabot in #4088
- chore(deps): bump next from 14.2.5 to 14.2.21 in /projects/app by @dependabot in #4087
- chore(deps): bump next from 14.2.5 to 14.2.21 by @dependabot in #4091
- feat: aiproxy repo moved by @zijiren233 in #4116
- chore: vitest support by @FinleyGe in #4026
- chore(deps): bump deepspeed from 0.14.2 to 0.15.1 in /plugins/model/tts-cosevoice by @dependabot in #4128
- chore(deps): bump lightning from 2.2.4 to 2.3.3 in /plugins/model/tts-cosevoice by @dependabot in #4129
- chore(deps): bump gradio from 4.32.2 to 5.11.0 in /plugins/model/tts-cosevoice by @dependabot in #4130
- Update official_account.md by @c121914yu in #4132
- Update docker.md by @Hwting in #4176
- V4.9.1 feature by @c121914yu in #4206
- doc: invitation link by @FinleyGe in #4217
- docs: Add PPIO integration documentation by @I-Info in #4216
- fix DatasetSelectModal.tsx by @gggaaallleee in #4241
- fix: dataset selector load error by @c121914yu in #4243
- fix: vector name by @c121914yu in #4246
- fix: nextjs 14.2.24 cannot auto create local storage (#4249) by @c121914yu in #4250
- update doc by @c121914yu in #4256
- 4.9.1 fix dataset (#4279) by @c121914yu in #4280
- chore(deps): bump torch from 2.0.1 to 2.4.0 in /plugins/model/llm-ChatGLM2 by @dependabot in #4282
- chore(deps): bump transformers from 4.30.2 to 4.48.0 in /plugins/model/llm-Baichuan2 by @dependabot in #4281
- chore(deps): bump transformers from 4.31.0 to 4.48.0 in /plugins/model/llm-ChatGLM2 by @dependabot in #4288
- add mistral-ocr support as a plugin like pdf-marker by @lzs2000131 in #4284
- chore(deps): bump python-multipart from 0.0.17 to 0.0.18 in /plugins/model/pdf-mistral by @dependabot in #4290
- Ollama接入文档 by @dreamer6680 in #4294
- add pdf-mineru by @fangqiluxatu in #4276
- fixed: permission error when viewing database search node responses by @LGiki in #4308
- test: Add unit test for projects/app/src/service/support/wallet/usage/utils.ts by @gru-agent in #4326
- test: Add unit test for projects/app/src/web/core/workflow/utils.ts by @gru-agent in #4327
- test: Add unit test for projects/app/src/global/core/chat/utils.ts by @gru-agent in #4328
- Inform by @gggaaallleee in #4307
- test: Add unit test for projects/app/src/pages/api/core/dataset/paths.ts by @gru-agent in #4349
- test: Add unit test for projects/app/src/pages/api/core/dataset/collection/paths.ts by @gru-agent in #4350
- perf: member tableui by @c121914yu in #4353
- fix: ts by @c121914yu in #4357
- docs: Add SSO Markdown Doc by @gggaaallleee in #4334
- update sso doc by @c121914yu in #4358
- pref: useScrollPagination support debounce and throttle. by @FinleyGe in #4355
- fix: simple app all_app button by @FinleyGe in #4365
- add qwen long by @c121914yu in #4363
- V4.9.2 feature by @c121914yu in #4354
- fix: typo by @LGiki in #4369
- V4.9.2 document by @c121914yu in #4371
- feat: Add support for independent loading states to optimize user experience during model testing by @sd0ric4 in #4366
- feat: vector store support oceanbase by @dengfuping in #4356
- perf: update test model ux by @c121914yu in #4375
New Contributors
- @ENg-122 made their first contribution in #4010
- @PairZhu made their first contribution in #4033
- @dependabot made their first contribution in #4089
- @zijiren233 made their first contribution in #4116
- @lzs2000131 made their first contribution in #4284
- @dreamer6680 made their first contribution in #4294
- @fangqiluxatu made their first contribution in #4276
- @gru-agent made their first contribution in #4326
- @sd0ric4 made their first contribution in #4366
- @dengfuping made their first contribution in #4356
Full Changelog: v4.9.0...v4.9.2