Compare commits
41 Commits
test-openG
...
v4.8.13-be
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2423a096c5 | ||
|
|
f68ae33cd8 | ||
|
|
211061d122 | ||
|
|
dc8aeefa2a | ||
|
|
cdce94a202 | ||
|
|
5e273341dd | ||
|
|
73d28d1fc3 | ||
|
|
5892ded567 | ||
|
|
f4e0dfc9bd | ||
|
|
d758ddb47c | ||
|
|
acdf6a0dd9 | ||
|
|
0201e63cfd | ||
|
|
e9f0d5dad5 | ||
|
|
11134f39e4 | ||
|
|
a5765ae32f | ||
|
|
72836402be | ||
|
|
8bd0749afe | ||
|
|
49aaf9b77e | ||
|
|
6c6c964b8a | ||
|
|
c5022654ca | ||
|
|
0a238845ab | ||
|
|
8ede7add01 | ||
|
|
91645cc420 | ||
|
|
4d6f736be3 | ||
|
|
f1fb85ead0 | ||
|
|
34fbd5a223 | ||
|
|
45aa2e7374 | ||
|
|
f58dba2eda | ||
|
|
78ef74f902 | ||
|
|
8303933ec2 | ||
|
|
2388652858 | ||
|
|
ba61c9e2e6 | ||
|
|
b0a14c585d | ||
|
|
0d494fde45 | ||
|
|
5a76b6f76d | ||
|
|
e78fa26ca7 | ||
|
|
16280e5d94 | ||
|
|
e96f09ca9f | ||
|
|
788d87a26f | ||
|
|
dc1119ca90 | ||
|
|
9e8138e55f |
2
.github/workflows/build-sandbox-image.yml
vendored
@@ -1,4 +1,4 @@
|
||||
name: Build fastgpt-sandbox images and copy image to docker hub
|
||||
name: Build fastgpt-sandbox images
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
|
||||
85
.github/workflows/fastgpt-image.yml
vendored
@@ -1,4 +1,4 @@
|
||||
name: Build FastGPT images and copy image to docker hub
|
||||
name: Build FastGPT images
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
@@ -90,3 +90,86 @@ jobs:
|
||||
-t ${Docker_Hub_Tag} \
|
||||
-t ${Docker_Hub_Latest} \
|
||||
.
|
||||
build-fastgpt-images-sub-route:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
# install env
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 1
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
sudo apt update && sudo apt install -y nodejs npm
|
||||
- name: Set up QEMU (optional)
|
||||
uses: docker/setup-qemu-action@v2
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
with:
|
||||
driver-opts: network=host
|
||||
- name: Cache Docker layers
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: /tmp/.buildx-cache
|
||||
key: ${{ runner.os }}-buildx-${{ github.sha }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-buildx-
|
||||
|
||||
# login docker
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GH_PAT }}
|
||||
- name: Login to Ali Hub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: registry.cn-hangzhou.aliyuncs.com
|
||||
username: ${{ secrets.ALI_HUB_USERNAME }}
|
||||
password: ${{ secrets.ALI_HUB_PASSWORD }}
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_HUB_NAME }}
|
||||
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
|
||||
|
||||
# Set tag
|
||||
- name: Set image name and tag
|
||||
run: |
|
||||
if [[ "${{ github.ref_name }}" == "main" ]]; then
|
||||
echo "Git_Tag=ghcr.io/${{ github.repository_owner }}/fastgpt-sub-route:latest" >> $GITHUB_ENV
|
||||
echo "Git_Latest=ghcr.io/${{ github.repository_owner }}/fastgpt-sub-route:latest" >> $GITHUB_ENV
|
||||
echo "Ali_Tag=${{ secrets.ALI_IMAGE_NAME }}/fastgpt-sub-route:latest" >> $GITHUB_ENV
|
||||
echo "Ali_Latest=${{ secrets.ALI_IMAGE_NAME }}/fastgpt-sub-route:latest" >> $GITHUB_ENV
|
||||
echo "Docker_Hub_Tag=${{ secrets.DOCKER_IMAGE_NAME }}/fastgpt-sub-route:latest" >> $GITHUB_ENV
|
||||
echo "Docker_Hub_Latest=${{ secrets.DOCKER_IMAGE_NAME }}/fastgpt-sub-route:latest" >> $GITHUB_ENV
|
||||
else
|
||||
echo "Git_Tag=ghcr.io/${{ github.repository_owner }}/fastgpt-sub-route:${{ github.ref_name }}" >> $GITHUB_ENV
|
||||
echo "Git_Latest=ghcr.io/${{ github.repository_owner }}/fastgpt-sub-route:latest" >> $GITHUB_ENV
|
||||
echo "Ali_Tag=${{ secrets.ALI_IMAGE_NAME }}/fastgpt-sub-route:${{ github.ref_name }}" >> $GITHUB_ENV
|
||||
echo "Ali_Latest=${{ secrets.ALI_IMAGE_NAME }}/fastgpt-sub-route:latest" >> $GITHUB_ENV
|
||||
echo "Docker_Hub_Tag=${{ secrets.DOCKER_IMAGE_NAME }}/fastgpt-sub-route:${{ github.ref_name }}" >> $GITHUB_ENV
|
||||
echo "Docker_Hub_Latest=${{ secrets.DOCKER_IMAGE_NAME }}/fastgpt-sub-route:latest" >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: Build and publish image for main branch or tag push event
|
||||
env:
|
||||
DOCKER_REPO_TAGGED: ${{ env.DOCKER_REPO_TAGGED }}
|
||||
run: |
|
||||
docker buildx build \
|
||||
-f projects/app/Dockerfile \
|
||||
--platform linux/amd64,linux/arm64 \
|
||||
--build-arg base_url=/fastai \
|
||||
--label "org.opencontainers.image.source=https://github.com/${{ github.repository_owner }}/FastGPT" \
|
||||
--label "org.opencontainers.image.description=fastgpt image" \
|
||||
--push \
|
||||
--cache-from=type=local,src=/tmp/.buildx-cache \
|
||||
--cache-to=type=local,dest=/tmp/.buildx-cache \
|
||||
-t ${Git_Tag} \
|
||||
-t ${Git_Latest} \
|
||||
-t ${Ali_Tag} \
|
||||
-t ${Ali_Latest} \
|
||||
-t ${Docker_Hub_Tag} \
|
||||
-t ${Docker_Hub_Latest} \
|
||||
.
|
||||
|
||||
BIN
docSite/assets/imgs/bing_search_plugin1.png
Normal file
|
After Width: | Height: | Size: 101 KiB |
BIN
docSite/assets/imgs/bing_search_plugin2.png
Normal file
|
After Width: | Height: | Size: 222 KiB |
BIN
docSite/assets/imgs/bing_search_plugin3.png
Normal file
|
After Width: | Height: | Size: 146 KiB |
BIN
docSite/assets/imgs/bing_search_plugin4.png
Normal file
|
After Width: | Height: | Size: 91 KiB |
BIN
docSite/assets/imgs/bing_search_plugin5.png
Normal file
|
After Width: | Height: | Size: 54 KiB |
BIN
docSite/assets/imgs/doc2x_plugin1.png
Normal file
|
After Width: | Height: | Size: 104 KiB |
BIN
docSite/assets/imgs/doc2x_plugin2.png
Normal file
|
After Width: | Height: | Size: 92 KiB |
BIN
docSite/assets/imgs/doc2x_plugin3.png
Normal file
|
After Width: | Height: | Size: 122 KiB |
BIN
docSite/assets/imgs/doc2x_plugin4.png
Normal file
|
After Width: | Height: | Size: 62 KiB |
BIN
docSite/assets/imgs/document_analysis1.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
docSite/assets/imgs/document_analysis2.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 151 KiB |
|
Before Width: | Height: | Size: 171 KiB |
BIN
docSite/assets/imgs/google_search_plugin1.png
Normal file
|
After Width: | Height: | Size: 51 KiB |
BIN
docSite/assets/imgs/google_search_plugin2.png
Normal file
|
After Width: | Height: | Size: 84 KiB |
BIN
docSite/assets/imgs/google_search_plugin3.png
Normal file
|
After Width: | Height: | Size: 207 KiB |
BIN
docSite/assets/imgs/google_search_plugin4.png
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
docSite/assets/imgs/image-5.png
Normal file
|
After Width: | Height: | Size: 372 KiB |
BIN
docSite/assets/imgs/image-6.png
Normal file
|
After Width: | Height: | Size: 471 KiB |
BIN
docSite/assets/imgs/image-7.png
Normal file
|
After Width: | Height: | Size: 416 KiB |
BIN
docSite/assets/imgs/integration1.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
docSite/assets/imgs/knowledge_merge1.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
docSite/assets/imgs/knowledge_merge2.png
Normal file
|
After Width: | Height: | Size: 124 KiB |
BIN
docSite/assets/imgs/knowledge_merge3.png
Normal file
|
After Width: | Height: | Size: 179 KiB |
BIN
docSite/assets/imgs/plugin_submission1.png
Normal file
|
After Width: | Height: | Size: 210 KiB |
BIN
docSite/assets/imgs/plugin_submission2.png
Normal file
|
After Width: | Height: | Size: 275 KiB |
BIN
docSite/assets/imgs/plugin_submission3.png
Normal file
|
After Width: | Height: | Size: 183 KiB |
BIN
docSite/assets/imgs/plugin_submission4.png
Normal file
|
After Width: | Height: | Size: 156 KiB |
BIN
docSite/assets/imgs/plugin_submission5.png
Normal file
|
After Width: | Height: | Size: 189 KiB |
BIN
docSite/assets/imgs/plugin_submission6.png
Normal file
|
After Width: | Height: | Size: 134 KiB |
BIN
docSite/assets/imgs/plugin_submission7.png
Normal file
|
After Width: | Height: | Size: 181 KiB |
BIN
docSite/assets/imgs/points1.png
Normal file
|
After Width: | Height: | Size: 146 KiB |
BIN
docSite/assets/imgs/spellcheck1.png
Normal file
|
After Width: | Height: | Size: 63 KiB |
BIN
docSite/assets/imgs/spellcheck2.png
Normal file
|
After Width: | Height: | Size: 128 KiB |
BIN
docSite/assets/imgs/spellcheck3.png
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
docSite/assets/imgs/spellcheck4.png
Normal file
|
After Width: | Height: | Size: 154 KiB |
BIN
docSite/assets/imgs/spellcheck5.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
docSite/assets/imgs/template_submission1.png
Normal file
|
After Width: | Height: | Size: 178 KiB |
BIN
docSite/assets/imgs/template_submission2.png
Normal file
|
After Width: | Height: | Size: 46 KiB |
BIN
docSite/assets/imgs/template_submission3.png
Normal file
|
After Width: | Height: | Size: 283 KiB |
BIN
docSite/assets/imgs/template_submission4.png
Normal file
|
After Width: | Height: | Size: 155 KiB |
BIN
docSite/assets/imgs/translate1.png
Normal file
|
After Width: | Height: | Size: 261 KiB |
BIN
docSite/assets/imgs/translate10.png
Normal file
|
After Width: | Height: | Size: 84 KiB |
BIN
docSite/assets/imgs/translate11.png
Normal file
|
After Width: | Height: | Size: 238 KiB |
BIN
docSite/assets/imgs/translate12.png
Normal file
|
After Width: | Height: | Size: 176 KiB |
BIN
docSite/assets/imgs/translate13.png
Normal file
|
After Width: | Height: | Size: 257 KiB |
BIN
docSite/assets/imgs/translate14.png
Normal file
|
After Width: | Height: | Size: 216 KiB |
BIN
docSite/assets/imgs/translate15.png
Normal file
|
After Width: | Height: | Size: 126 KiB |
BIN
docSite/assets/imgs/translate16.png
Normal file
|
After Width: | Height: | Size: 88 KiB |
BIN
docSite/assets/imgs/translate17.png
Normal file
|
After Width: | Height: | Size: 284 KiB |
BIN
docSite/assets/imgs/translate18.png
Normal file
|
After Width: | Height: | Size: 442 KiB |
BIN
docSite/assets/imgs/translate19.png
Normal file
|
After Width: | Height: | Size: 465 KiB |
BIN
docSite/assets/imgs/translate2.png
Normal file
|
After Width: | Height: | Size: 316 KiB |
BIN
docSite/assets/imgs/translate20.png
Normal file
|
After Width: | Height: | Size: 434 KiB |
BIN
docSite/assets/imgs/translate21.png
Normal file
|
After Width: | Height: | Size: 66 KiB |
BIN
docSite/assets/imgs/translate3.png
Normal file
|
After Width: | Height: | Size: 341 KiB |
BIN
docSite/assets/imgs/translate4.png
Normal file
|
After Width: | Height: | Size: 175 KiB |
BIN
docSite/assets/imgs/translate5.png
Normal file
|
After Width: | Height: | Size: 463 KiB |
BIN
docSite/assets/imgs/translate61.png
Normal file
|
After Width: | Height: | Size: 591 KiB |
BIN
docSite/assets/imgs/translate7.png
Normal file
|
After Width: | Height: | Size: 238 KiB |
BIN
docSite/assets/imgs/translate8.png
Normal file
|
After Width: | Height: | Size: 69 KiB |
BIN
docSite/assets/imgs/translate9.png
Normal file
|
After Width: | Height: | Size: 106 KiB |
BIN
docSite/assets/imgs/user-selection1.png
Normal file
|
After Width: | Height: | Size: 60 KiB |
BIN
docSite/assets/imgs/user-selection2.png
Normal file
|
After Width: | Height: | Size: 162 KiB |
BIN
docSite/assets/imgs/user-selection3.png
Normal file
|
After Width: | Height: | Size: 180 KiB |
BIN
docSite/assets/imgs/variable_update1.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
docSite/assets/imgs/variable_update2.png
Normal file
|
After Width: | Height: | Size: 179 KiB |
BIN
docSite/assets/imgs/variable_update3.png
Normal file
|
After Width: | Height: | Size: 190 KiB |
BIN
docSite/assets/imgs/variable_update4.png
Normal file
|
After Width: | Height: | Size: 175 KiB |
BIN
docSite/assets/imgs/variable_update5.png
Normal file
|
After Width: | Height: | Size: 186 KiB |
@@ -7,25 +7,6 @@ toc: true
|
||||
weight: 811
|
||||
---
|
||||
|
||||
## 更新说明
|
||||
|
||||
1. 新增 - 数组变量选择支持多选,可以选多个数组或对应的单一数据类型,会自动按选择顺序进行合并。
|
||||
2. 新增 - 文件上传方案调整,AI对话和工具调用节点直接支持接收文件链接,并且会强制加入提示词,无需由模型决策调用。插件自定义变量支持文件上传类型,取代全局文件。
|
||||
3. 新增 - 对话记录增加时间显示。
|
||||
4. 新增 - 工作流校验错误时,跳转至错误节点。
|
||||
5. 新增 - 循环节点增加下标值。
|
||||
6. 新增 - 部分对话错误提醒增加翻译。
|
||||
7. 新增 - 对话输入框支持拖拽文件上传,可直接拖文件到输入框中。
|
||||
8. 优化 - 合并多个 system 提示词成 1 个,避免部分模型不支持多个 system 提示词。
|
||||
9. 优化 - 知识库上传文件,优化报错提示。
|
||||
10. 优化 - 全文检索语句,减少一轮子查询。
|
||||
11. 优化 - 修改 findLast 为 [...array].reverse().find,适配旧版浏览器。
|
||||
12. 优化 - Markdown 组件自动空格,避免分割 url 中的中文。
|
||||
13. 优化 - 工作流上下文拆分,性能优化。
|
||||
14. 优化 - 语音播报,不支持 mediaSource 的浏览器可等待完全生成语音后输出。
|
||||
15. 修复 - Dockerfile pnpm install 支持代理。
|
||||
16. 修复 - BI 图表生成无法写入文件。
|
||||
|
||||
## 更新指南
|
||||
|
||||
### 1. 做好数据备份
|
||||
@@ -39,3 +20,25 @@ weight: 811
|
||||
### 3. 调整文件上传编排
|
||||
|
||||
虽然依然兼容旧版的文件上传编排,但是未来两个版本内将会去除兼容代码,请尽快调整编排,以适应最新的文件上传逻辑。尤其是嵌套应用的文件传递,未来将不会自动传递,必须手动指定传递的文件。
|
||||
|
||||
## 更新说明
|
||||
|
||||
1. 新增 - 数组变量选择支持多选,可以选多个数组或对应的单一数据类型,会自动按选择顺序进行合并。
|
||||
2. 新增 - 文件上传方案调整,AI对话和工具调用节点直接支持接收文件链接,并且会强制加入提示词,无需由模型决策调用。插件自定义变量支持文件上传类型,取代全局文件。
|
||||
3. 新增 - 对话记录增加时间显示。
|
||||
4. 新增 - 工作流校验错误时,跳转至错误节点。
|
||||
5. 新增 - 循环节点增加下标值。
|
||||
6. 新增 - 部分对话错误提醒增加翻译。
|
||||
7. 新增 - 对话输入框支持拖拽文件上传,可直接拖文件到输入框中。
|
||||
8. 新增 - 对话日志,来源可显示分享链接/API具体名称
|
||||
9. 新增 - 分享链接支持配置是否展示实时运行状态。
|
||||
10. 优化 - 合并多个 system 提示词成 1 个,避免部分模型不支持多个 system 提示词。
|
||||
11. 优化 - 知识库上传文件,优化报错提示。
|
||||
12. 优化 - 全文检索语句,减少一轮子查询。
|
||||
13. 优化 - 修改 findLast 为 [...array].reverse().find,适配旧版浏览器。
|
||||
14. 优化 - Markdown 组件自动空格,避免分割 url 中的中文。
|
||||
15. 优化 - 工作流上下文拆分,性能优化。
|
||||
16. 优化 - 语音播报,不支持 mediaSource 的浏览器可等待完全生成语音后输出。
|
||||
17. 修复 - Dockerfile pnpm install 支持代理。
|
||||
18. 修复 - BI 图表生成无法写入文件。同时优化其解析,支持数字类型数组。
|
||||
19. 修复 - 分享链接首次加载时,标题显示不正确。
|
||||
|
||||
@@ -6,6 +6,6 @@ draft: false
|
||||
toc: true
|
||||
weight: 900
|
||||
---
|
||||
<!-- 9800 ~ 1000 -->
|
||||
<!-- 900 ~ 1000 -->
|
||||
|
||||
FastGPT 是一个由用户和贡献者参与推动的开源项目,如果您对产品使用存在疑问和建议,可尝试[加入社区](community)寻求支持。我们的团队与社区会竭尽所能为您提供帮助。
|
||||
@@ -4,7 +4,7 @@ description: 'FastGPT 常见应用使用问题,包括简易应用、工作流
|
||||
icon: 'quiz'
|
||||
draft: false
|
||||
toc: true
|
||||
weight: 903
|
||||
weight: 908
|
||||
---
|
||||
|
||||
## 工作流中多轮对话场景中如何使连续问题被问题分类节点正确的归类
|
||||
|
||||
@@ -4,7 +4,7 @@ description: 'FastGPT 常见聊天框问题'
|
||||
icon: 'quiz'
|
||||
draft: false
|
||||
toc: true
|
||||
weight: 905
|
||||
weight: 906
|
||||
---
|
||||
|
||||
## 我修改了工作台的应用,为什么在“聊天”时没有更新配置?
|
||||
|
||||
@@ -4,7 +4,7 @@ description: '常见知识库使用问题'
|
||||
icon: 'quiz'
|
||||
draft: false
|
||||
toc: true
|
||||
weight: 904
|
||||
weight: 910
|
||||
---
|
||||
|
||||
## 上传的文件内容出现中文乱码
|
||||
|
||||
@@ -4,7 +4,7 @@ description: 'FastGPT Docker 部署问题'
|
||||
icon: ''
|
||||
draft: false
|
||||
toc: true
|
||||
weight: 901
|
||||
weight: 902
|
||||
type: redirect
|
||||
target: /docs/development/docker/#faq
|
||||
---
|
||||
|
||||
@@ -1,7 +1,15 @@
|
||||
---
|
||||
title: '常见错误'
|
||||
title: '报错'
|
||||
icon: 'quiz'
|
||||
draft: false
|
||||
toc: true
|
||||
weight: 920
|
||||
---
|
||||
weight: 914
|
||||
---
|
||||
|
||||
1. ### 当前分组上游负载已饱和,请稍后再试(request id:202407100753411462086782835521)
|
||||
|
||||
是oneapi渠道的问题,可以换个模型用or换一家中转站
|
||||
|
||||
1. ### 使用API时在日志中报错Connection Error
|
||||
|
||||
大概率是api-key填写了openapi,然后部署的服务器在国内,不能访问海外的api,可以使用中转或者反代的手段解决访问不到的问题
|
||||
@@ -0,0 +1,18 @@
|
||||
---
|
||||
title: "接入外部渠道"
|
||||
description: "如何通过外部渠道与 FastGPT 集成,实现对多种平台的支持"
|
||||
icon: "integration"
|
||||
draft: false
|
||||
toc: true
|
||||
weight: 912
|
||||
---
|
||||
|
||||
1. ### 接入cow,图文对话无法直接显示图片
|
||||
|
||||
提示词给引导,不要以markdown格式输出。图片需要二开 cow 实现图片链接截取并发送。
|
||||
|
||||
1. ### 可以获取到用户发送问答的记录吗
|
||||
|
||||
在应用的对话日志里可以查看。
|
||||
|
||||

|
||||
@@ -3,7 +3,7 @@ title: '其他问题'
|
||||
icon: 'quiz'
|
||||
draft: false
|
||||
toc: true
|
||||
weight: 925
|
||||
weight: 918
|
||||
---
|
||||
|
||||
## oneapi 官网是哪个
|
||||
|
||||
14
docSite/content/zh-cn/docs/faq/points_consumption.md
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
title: "积分消耗"
|
||||
description: "了解 FastGPT 中的积分消耗机制和使用场景"
|
||||
icon: "points"
|
||||
draft: false
|
||||
toc: true
|
||||
weight: 916
|
||||
---
|
||||
|
||||
1. ### 接入oneapi后,为什么还会消耗fastgpt的积分
|
||||
|
||||
矢量数据库检索会默认消耗。可以查看看绑定提示和使用记录。
|
||||
|
||||

|
||||
@@ -4,7 +4,7 @@ description: "FastGPT 私有部署常见问题"
|
||||
icon: upgrade
|
||||
draft: false
|
||||
images: []
|
||||
weight: 902
|
||||
weight: 904
|
||||
type: redirect
|
||||
target: /docs/development/faq/
|
||||
---
|
||||
9
docSite/content/zh-cn/docs/guide/_index.md
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
weight: 100
|
||||
title: '功能介绍'
|
||||
description: 'FastGPT 的功能和使用指南'
|
||||
icon: 'import_contacts'
|
||||
draft: false
|
||||
images: []
|
||||
---
|
||||
<!-- 100 ~ 500 -->
|
||||
@@ -6,4 +6,4 @@ icon: 'import_contacts'
|
||||
draft: false
|
||||
images: []
|
||||
---
|
||||
<!-- 100 ~ 300 -->
|
||||
<!-- 100 ~ 200 -->
|
||||
@@ -4,7 +4,7 @@ description: "FastGPT AI 相关参数配置说明"
|
||||
icon: "sign_language"
|
||||
draft: false
|
||||
toc: true
|
||||
weight: 102
|
||||
weight: 104
|
||||
---
|
||||
|
||||
在 FastGPT 的 AI 对话模块中,有一个 AI 高级配置,里面包含了 AI 模型的参数配置,本文详细介绍这些配置的含义。
|
||||
@@ -4,7 +4,7 @@ description: "FastGPT 对话问题引导"
|
||||
icon: "code"
|
||||
draft: false
|
||||
toc: true
|
||||
weight: 108
|
||||
weight: 106
|
||||
---
|
||||
|
||||

|
||||
@@ -20,10 +20,12 @@ weight: 110
|
||||
|
||||
随后,你的调试对话框中,就会出现一个文件选择的 icon,可以点击文件选择 icon,选择你需要上传的文件。
|
||||
|
||||
由于采用的是工具调用模式,所以在提问时候,可能需要加上适当的引导,让模型知道,你需要读取`文档`。
|
||||
|
||||

|
||||
|
||||
**工作模式**
|
||||
|
||||
从 4.8.13 版本起,简易模式的文件读取将会强制解析文件并放入 system 提示词中,避免连续对话时,模型有时候不会主动调用读取文件的工具。
|
||||
|
||||
## 工作流中使用
|
||||
|
||||
工作流中,可以在系统配置中,找到`文件输入`配置项,点击其右侧的`开启`/`关闭`按键,即可打开配置弹窗。
|
||||
@@ -32,14 +34,13 @@ weight: 110
|
||||
|
||||
在工作流中,使用文件的方式很多,最简单的就是类似下图中,直接通过工具调用接入文档解析,实现和简易模式一样的效果。
|
||||
|
||||

|
||||
| | |
|
||||
| --------------------- | --------------------- |
|
||||
|  |  |
|
||||
|
||||
也可以更简单点,强制每轮对话都携带上文档内容进行回答,这样就不需要调用两次 AI 才能读取文档内容了。
|
||||
|
||||

|
||||
|
||||
当然,你也可以在工作流中,对文档进行内容提取、内容分析等,然后将分析的结果传递给 HTTP 或者其他模块,从而实现文件处理的 SOP。不过目前版本,`插件`中并未支持文件处理,所以在构建 SOP 的话可能还是有一些麻烦。
|
||||
当然,你也可以在工作流中,对文档进行内容提取、内容分析等,然后将分析的结果传递给 HTTP 或者其他模块,从而实现文件处理的 SOP。
|
||||
|
||||

|
||||
|
||||
## 文档解析工作原理
|
||||
|
||||
@@ -73,23 +74,8 @@ type UserChatItemValueItemType = {
|
||||
|
||||
文档解析依赖文档解析节点,这个节点会接收一个`array<string>`类型的输入,对应的是文件输入的 URL;输出的是一个`string`,对应的是文档解析后的内容。
|
||||
|
||||

|
||||
|
||||
* 在文档解析节点中,只会解析`文档`类型的 URL,它是通过文件 URL 解析出来的`文名件后缀`去判断的。如果你同时选择了文档和图片,图片会被忽略。
|
||||
* 文档解析节点,除了解析本轮工作流接收的文件外,还会把历史记录中的文档 URL 进行解析。最终会解析至多 n 个文档,n 取决于你配置文件上传时,允许的最大文件数量。
|
||||
|
||||
{{% alert icon="🤖" context="success" %}}
|
||||
举例:
|
||||
|
||||
配置了最多允许 5 个文件上传
|
||||
|
||||
1. 第一轮对话,上传 3 个文档和 1 个图片:文档解析节点,返回 3 个文档内容。
|
||||
2. 第二轮对话,不上传任何文件:文档解析节点,返回 3 个文档内容。
|
||||
3. 第三轮对话,上传 2 个文档:文档解析节点,返回 5 个文档内容。
|
||||
4. 第四轮对话,上传 1 个文档:文档解析节点,返回 5 个文档内容,第一轮对话中的第三个文档会被过滤掉。
|
||||
|
||||
{{% /alert %}}
|
||||
|
||||
* **文档解析节点,只会解析本轮工作流接收的文件,不会解析历史记录的文件。**
|
||||
* 多个文档内容如何拼接的
|
||||
|
||||
按下列的模板,对多个文件进行拼接,即文件名+文件内容的形式组成一个字符串,不同文档之间通过分隔符:`\n******\n` 进行分割。
|
||||
@@ -101,32 +87,27 @@ ${content}
|
||||
</Content>
|
||||
```
|
||||
|
||||
### 工具调用如何使用文档解析
|
||||
### AI节点中如何使用文档解析
|
||||
|
||||
在工具调用中,文档解析节点的调用提示词为:`解析对话中所有上传的文档,并返回对应文档内容`。
|
||||
在 AI 节点(AI对话/工具调用)中,新增了一个文档链接的输入,可以直接引用文档的地址,从而实现文档内容的引用。
|
||||
|
||||
作为工具被执行后,文档解析节点会返回解析后的文档内容作为工具响应。
|
||||
|
||||
### AI对话中如何使用文档解析
|
||||
|
||||
在 AI 对话节点中,新增了一个文档引用的输入,可以直接引用文档解析节点的输出,从而实现文档内容的引用。
|
||||
|
||||
它接收一个`string`类型的输入,除了可以引用文档解析结果外,还可以实现自定义内容引用,最终会进行提示词拼接,放置在 role=system 的消息中。提示词模板如下:
|
||||
它接收一个`Array<string>`类型的输入,最终这些 url 会被解析,并进行提示词拼接,放置在 role=system 的消息中。提示词模板如下:
|
||||
|
||||
```
|
||||
将 <Quote></Quote> 中的内容作为本次对话的参考:
|
||||
<Quote>
|
||||
将 <FilesContent></FilesContent> 中的内容作为本次对话的参考:
|
||||
<FilesContent>
|
||||
{{quote}}
|
||||
</Quote>
|
||||
</FilesContent>
|
||||
```
|
||||
|
||||
quote 为引用的内容。
|
||||
# 4.8.13版本起,关于文件上传的更新
|
||||
|
||||

|
||||
由于与 4.8.9 版本有些差异,尽管我们做了向下兼容,避免工作流立即不可用。但是请尽快的按新版本规则进行调整工作流,后续将会去除兼容性代码。
|
||||
|
||||
## 文件输入后续更新
|
||||
|
||||
* 插件支持配置文件输入。
|
||||
* 子应用和插件调用,支持传递文件输入。
|
||||
* 文档解析,结构化解析结果。
|
||||
* 更多的文件类型输入以及解析器。
|
||||
1. 简易模式中,将会强制进行文件解析,不再由模型决策是否解析,保证每次都能参考文档。
|
||||
2. 文档解析:不再解析历史记录中的文件。
|
||||
3. 工具调用:支持直接选择文档引用,不需要再挂载文档解析工具。会自动解析历史记录中的文件。
|
||||
4. AI 对话:支持直接选择文档引用,不需要进过文档解析节点。会自动解析历史记录中的文件。
|
||||
5. 插件单独运行:不再支持全局文件;插件输入支持配置文件类型,可以取代全局文件上传。
|
||||
6. **工作流调用插件:不再自动传递工作流上传的文件到插件,需要手动给插件输入指定变量。**
|
||||
7. **工作流调用工作流:不再自动传递工作流上传的文件到子工作流,可以手动选择需要传递的文件链接。**
|
||||
@@ -4,7 +4,7 @@ description: '快速体验 FastGPT 基础功能'
|
||||
icon: 'rocket_launch'
|
||||
draft: false
|
||||
toc: true
|
||||
weight: 101
|
||||
weight: 102
|
||||
---
|
||||
|
||||
更多使用技巧,[查看视屏教程](https://www.bilibili.com/video/BV1sH4y1T7s9)
|
||||
@@ -4,7 +4,7 @@ description: '本节详细介绍RAG模型的核心机制、应用场景及其在
|
||||
icon: 'language'
|
||||
draft: false
|
||||
toc: true
|
||||
weight: 106
|
||||
weight: 402
|
||||
---
|
||||
|
||||
[RAG文档](https://huggingface.co/docs/transformers/model_doc/rag)
|
||||
@@ -83,7 +83,7 @@ RAG(检索增强生成)模型通过结合检索器和生成器,实现了
|
||||
RAG模型的性能很大程度上取决于检索器返回的文档质量。由于生成器主要依赖检索器提供的上下文信息,如果检索到的文档片段不相关、不准确,生成的文本可能出现偏差,甚至产生误导性的结果。尤其在多模糊查询或跨领域检索的情况下,检索器可能无法找到合适的片段,这将直接影响生成内容的连贯性和准确性。
|
||||
|
||||
- 挑战:当知识库庞大且内容多样时,如何提高检索器在复杂问题下的精确度是一大挑战。当前的方法如BM25等在特定任务上有局限,尤其是在面对语义模糊的查询时,传统的关键词匹配方式可能无法提供语义上相关的内容。
|
||||
- 解决途径:引入混合检索技术,如结合稀疏检索(BM25)与密集检索(如向量检索)。例如,[Faiss](https://fael3z0zfze.feishu.cn/wiki/LULawsUufitGvWkDjx3cKJqHnle?from=from_copylink)的底层实现允许通过BERT等模型生成密集向量表示,显著提升语义级别的匹配效果。通过这种方式,检索器可以捕捉深层次的语义相似性,减少无关文档对生成器的负面影响。
|
||||
- 解决途径:引入混合检索技术,如结合稀疏检索(BM25)与密集检索(如向量检索)。例如,Faiss的底层实现允许通过BERT等模型生成密集向量表示,显著提升语义级别的匹配效果。通过这种方式,检索器可以捕捉深层次的语义相似性,减少无关文档对生成器的负面影响。
|
||||
|
||||
#### 4.2.2 生成器的计算复杂度与性能瓶颈
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
---
|
||||
weight: 400
|
||||
title: '知识库'
|
||||
description: '知识库的基础原理、搜索方案、Web站点同步和外部文件知识库的使用方法。'
|
||||
icon: 'book'
|
||||
draft: false
|
||||
images: []
|
||||
---
|
||||
<!-- 400 ~ 450 -->
|
||||
@@ -4,7 +4,7 @@ description: '本节会详细介绍 FastGPT 知识库结构设计,理解其 QA
|
||||
icon: 'language'
|
||||
draft: false
|
||||
toc: true
|
||||
weight: 106
|
||||
weight: 404
|
||||
---
|
||||
|
||||
## 理解向量
|
||||
@@ -4,7 +4,7 @@ description: 'FastGPT 外部文件知识库功能介绍和使用方式'
|
||||
icon: 'language'
|
||||
draft: false
|
||||
toc: true
|
||||
weight: 107
|
||||
weight: 408
|
||||
---
|
||||
|
||||
外部文件库是 FastGPT 商业版特有功能。它允许接入你现在的文件系统,无需将文件再导入一份到 FastGPT 中。
|
||||
@@ -4,7 +4,7 @@ description: 'FastGPT Web 站点同步功能介绍和使用方式'
|
||||
icon: 'language'
|
||||
draft: false
|
||||
toc: true
|
||||
weight: 105
|
||||
weight: 406
|
||||
---
|
||||
|
||||

|
||||
9
docSite/content/zh-cn/docs/guide/plugins/_index.md
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
weight: 300
|
||||
title: '系统插件'
|
||||
description: '介绍如何使用和提交系统插件,以及各插件的填写说明'
|
||||
icon: 'extension'
|
||||
draft: false
|
||||
images: []
|
||||
---
|
||||
<!-- 300 ~ 400 -->
|
||||
@@ -0,0 +1,32 @@
|
||||
---
|
||||
title: "Bing 搜索插件填写说明"
|
||||
description: "FastGPT Bing 搜索插件配置步骤详解"
|
||||
icon: "bing_search"
|
||||
draft: false
|
||||
toc: true
|
||||
weight: 306
|
||||
---
|
||||
|
||||
1. # 打开微软Azure官网,登陆账号
|
||||
|
||||
https://portal.azure.com/
|
||||
|
||||

|
||||
|
||||
1. # 创建bing web搜索资源
|
||||
|
||||
搜索Bing Search v7,点击创建
|
||||
|
||||
https://portal.azure.com/#create/Microsoft.BingSearch
|
||||
|
||||

|
||||
|
||||
1. # 进入资源详情点击管理密钥
|
||||
|
||||

|
||||
|
||||
# 4. 复制任意一个密钥填入插件输入
|
||||
|
||||

|
||||
|
||||

|
||||
@@ -0,0 +1,26 @@
|
||||
---
|
||||
title: "Doc2x 插件填写说明"
|
||||
description: "如何配置和使用 Doc2x 插件"
|
||||
icon: "doc_transform"
|
||||
draft: false
|
||||
toc: true
|
||||
weight: 308
|
||||
---
|
||||
|
||||
1. # 打开docx官网,创建账号,并复制 apikey
|
||||
|
||||
https://doc2x.noedgeai.com/
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
1. # 填写apikey到fastgpt中
|
||||
|
||||
**工作流****中:**
|
||||
|
||||

|
||||
|
||||
**简易模式使用:**
|
||||
|
||||

|
||||
@@ -0,0 +1,32 @@
|
||||
---
|
||||
title: "Google 搜索插件填写说明"
|
||||
description: "FastGPT Google 搜索插件配置指南"
|
||||
icon: "google_search"
|
||||
draft: false
|
||||
toc: true
|
||||
weight: 304
|
||||
---
|
||||
|
||||
1. # 创建Google Custom Search Engine
|
||||
|
||||
https://programmablesearchengine.google.com/
|
||||
|
||||
我们连到Custom Search Engine control panel 建立Search Engine
|
||||
|
||||

|
||||
|
||||
取得搜索引擎的ID,即cx
|
||||
|
||||

|
||||
|
||||
1. # 获取api key
|
||||
|
||||
https://developers.google.com/custom-search/v1/overview?hl=zh-cn
|
||||
|
||||

|
||||
|
||||
1. # 填入插件输入参数
|
||||
|
||||
将搜索引擎ID填入cx字段,api key填入key字段
|
||||
|
||||

|
||||