index
int64
0
0
repo_id
stringlengths
16
181
file_path
stringlengths
28
270
content
stringlengths
1
11.6M
__index_level_0__
int64
0
10k
0
petrpan-code/labring/FastGPT
petrpan-code/labring/FastGPT/docSite/hugo.toml
baseURL = "/" languageCode = "en-GB" contentDir = "content" enableEmoji = true enableGitInfo = false # N.B. .GitInfo does not currently function with git submodule content directories defaultContentLanguage = 'zh-cn' [languages] [languages.zh-cn] title = "FastGPT" languageName = "简体中文" #contentDir = "con...
5,500
0
petrpan-code/labring/FastGPT
petrpan-code/labring/FastGPT/docSite/vercel.json
{ "redirects": [ { "source": "/", "destination": "/docs" } ], "headers": [ { "source": "/(.*)", "headers": [ { "key": "X-Content-Type-Options", "value": "nosniff" }, { "key": "X-Frame-Options", "value": "SAMEORIGIN...
5,501
0
petrpan-code/labring/FastGPT/docSite
petrpan-code/labring/FastGPT/docSite/archetypes/default.md
--- title: "{{ replace .Name "-" " " | title }}" date: {{ .Date }} draft: true ---
5,502
0
petrpan-code/labring/FastGPT/docSite/assets/docs
petrpan-code/labring/FastGPT/docSite/assets/docs/scss/style.scss
/* Template Name: Lotus Docs Author: Colin Wilson E-mail: colin@aigis.uk Created: October 2022 Version: 1.2.0 File Description: Main CSS file for Lotus Docs */ // Custom Font Variables $font-family-secondary: {{ .Site.Params.secondary_font | default "-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Robo...
5,503
0
petrpan-code/labring/FastGPT/docSite/assets/docs/scss/custom
petrpan-code/labring/FastGPT/docSite/assets/docs/scss/custom/pages/_custom.scss
.docs-content .main-content img, .docs-content .main-content svg:not(.gitinfo svg):not(a svg) { max-width: 80% !important; height: auto; display: block !important; margin: 0 auto !important; border-radius: .25rem; } div.code-toolbar { padding-top: 1.95rem !important; } .docs-content .main-con...
5,504
0
petrpan-code/labring/FastGPT/docSite/assets/images
petrpan-code/labring/FastGPT/docSite/assets/images/logos/logo.svg
<svg width="26" height="26" viewBox="0 0 1041 1348" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M340.837 0.33933L681.068 0.338989V0.455643C684.032 0.378397 686.999 0.339702 689.967 0.339702C735.961 0.3397 781.504 9.62899 823.997 27.6772C866.49 45.7254 905.099 72.1791 937.622 105.528C970.144 138.877 995.942...
5,505
0
petrpan-code/labring/FastGPT/docSite/assets/images
petrpan-code/labring/FastGPT/docSite/assets/images/logos/mark.svg
<svg width="26" height="26" viewBox="0 0 1041 1348" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M340.837 0.33933L681.068 0.338989V0.455643C684.032 0.378397 686.999 0.339702 689.967 0.339702C735.961 0.3397 781.504 9.62899 823.997 27.6772C866.49 45.7254 905.099 72.1791 937.622 105.528C970.144 138.877 995.942...
5,506
0
petrpan-code/labring/FastGPT/docSite/assets/images
petrpan-code/labring/FastGPT/docSite/assets/images/social/wechat.svg
<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <title>微信群</title> <path d="M21.6696 15.9962C21.9464 15.9925 22.2107 15.881 22.4064 15.6853C22.6021 15.4896 22.7137 15.2252 22.7173 14.948...
5,507
0
petrpan-code/labring/FastGPT/docSite/assets/images
petrpan-code/labring/FastGPT/docSite/assets/images/social/wechat1.svg
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg"> <g clip-path="url(#clip0_280_54)"> <path d="M21.6696 15.9962C21.9464 15.9925 22.2107 15.881 22.4064 15.6853C22.6021 15.4896 22.7137 15.2252 22.7173 14.9485C22.7173 14.3675 22.2518 13.9008 21.6696 13.9008C21.0875 13.9008 20.6...
5,508
0
petrpan-code/labring/FastGPT/docSite/content
petrpan-code/labring/FastGPT/docSite/content/docs/_index.md
--- weight: 10 title: '文档' description: 'FastGPT 官方文档' icon: menu_book lead: '' draft: false images: [] ---
5,509
0
petrpan-code/labring/FastGPT/docSite/content
petrpan-code/labring/FastGPT/docSite/content/docs/commercial.md
--- title: '商业版' description: 'FastGPT 商业版相关说明' icon: 'shopping_cart' draft: false toc: true weight: 20 --- ## FastGPT 线上服务 [按线上标准计费](/docs/pricing)即可。 地址: https://fastgpt.run ## 商业版 商业版最终交付版本功能与 https://fastgpt.run 完全一致,品牌内容可自定义,商业授权时长同`License`有效期。 {{% alert icon="🤖" context="warning" %}} 商业版比开源版额外增加的内容:(目前计划) ...
5,510
0
petrpan-code/labring/FastGPT/docSite/content
petrpan-code/labring/FastGPT/docSite/content/docs/intro.md
--- title: '快速了解 FastGPT' description: 'FastGPT 的能力与优势' icon: 'rocket_launch' draft: false toc: true weight: -10 --- FastGPT 是一个基于 LLM 大语言模型的知识库问答系统,提供开箱即用的数据处理、模型调用等能力。同时可以通过 Flow 可视化进行工作流编排,从而实现复杂的问答场景! {{% alert icon="🤖 " context="success" %}} FastGPT 在线体验:[https://fastgpt.run](https://fastgpt.run) {{% /alert %}}...
5,511
0
petrpan-code/labring/FastGPT/docSite/content
petrpan-code/labring/FastGPT/docSite/content/docs/pricing.md
--- title: '线上版定价' description: 'FastGPT 线上版定价' icon: 'currency_yen' draft: false toc: true weight: 11 --- ## Tokens 说明 [OpenAI 的 API 官方计费模式](https://openai.com/pricing#language-models)为:按每次 API 请求内容和返回内容 tokens 长度来定价。每个模型具有不同的计价方式,以每 1,000 个 tokens 消耗为单位定价。其中 1,000 个 tokens 约为 900 个英文,约 600 个中文(不是很准确,与上下长度有关,相同的词出现越多...
5,512
0
petrpan-code/labring/FastGPT/docSite/content
petrpan-code/labring/FastGPT/docSite/content/docs/quick-start.md
--- title: '快速上手' description: '快速体验 FastGPT 基础功能' icon: 'rocket_launch' draft: false toc: true weight: 30 --- 更多使用技巧,[查看视屏教程](https://www.bilibili.com/video/BV1n34y1A7Bo/?spm_id_from=333.337.search-card.all.click&vd_source=903c2b09b7412037c2eddc6a8fb9828b) ## 知识库 开始前,请准备一份测试电子文档,WORD,PDF,TXT,excel,markdown 都可以,比如公司...
5,513
0
petrpan-code/labring/FastGPT/docSite/content/docs
petrpan-code/labring/FastGPT/docSite/content/docs/community/_index.md
--- weight: 1100 title: '社区' description: '社区相关内容' icon: 'forum' draft: false images: [] ---
5,514
0
petrpan-code/labring/FastGPT/docSite/content/docs
petrpan-code/labring/FastGPT/docSite/content/docs/community/open-source.md
--- title: '开源协议' description: ' FastGPT 开源许可证' icon: 'verified_user' draft: false toc: true weight: 1120 --- FastGPT 项目在 Apache License 2.0 许可下开源,同时包含以下附加条件: + FastGPT 允许被用于商业化,例如作为其他应用的“后端即服务”使用,或者作为应用开发平台提供给企业。然而,当满足以下条件时,必须联系作者获得商业许可: + 多租户 SaaS 服务:除非获得 FastGPT 的明确书面授权,否则不得使用 fastgpt.run 的源码来运营与 fastgpt.ru...
5,515
0
petrpan-code/labring/FastGPT/docSite/content/docs
petrpan-code/labring/FastGPT/docSite/content/docs/community/support.md
--- title: '加入社区' description: ' 加入 FastGPT 开发者社区和我们一起成长' icon: 'forum' draft: false toc: true weight: 1110 --- FastGPT 是一个由用户和贡献者参与推动的开源项目,如果您对产品使用存在疑问和建议,可尝试以下方式寻求支持。我们的团队与社区会竭尽所能为您提供帮助。 + 📱 扫码加入社区微信交流群👇 <img width="400px" src="/wechat-fastgpt.webp" /> + 🐞 请将任何 FastGPT 的 Bug、问题和需求提交到 [GitHub Issue](https://...
5,516
0
petrpan-code/labring/FastGPT/docSite/content/docs
petrpan-code/labring/FastGPT/docSite/content/docs/custom-models/_index.md
--- weight: 900 title: '本地模型使用' description: 'FastGPT 对接本地模型' icon: 'model_training' draft: false images: [] ---
5,517
0
petrpan-code/labring/FastGPT/docSite/content/docs
petrpan-code/labring/FastGPT/docSite/content/docs/custom-models/chatglm2-m3e.md
--- title: '接入 ChatGLM2-m3e 模型' description: ' 将 FastGPT 接入私有化模型 ChatGLM2和m3e-large' icon: 'model_training' draft: false toc: true weight: 930 --- ## 前言 FastGPT 默认使用了 OpenAI 的 LLM 模型和向量模型,如果想要私有化部署的话,可以使用 ChatGLM2 和 m3e-large 模型。以下是由用户@不做了睡大觉 提供的接入方法。该镜像直接集成了 M3E-Large 和 ChatGLM2-6B 模型,可以直接使用。 ## 部署镜像 + 镜像名: `stawk...
5,518
0
petrpan-code/labring/FastGPT/docSite/content/docs
petrpan-code/labring/FastGPT/docSite/content/docs/custom-models/chatglm2.md
--- title: '接入 ChatGLM2-6B' description: ' 将 FastGPT 接入私有化模型 ChatGLM2-6B' icon: 'model_training' draft: false toc: true weight: 910 --- ## 前言 FastGPT 允许你使用自己的 OpenAI API KEY 来快速调用 OpenAI 接口,目前集成了 GPT-3.5, GPT-4 和 embedding,可构建自己的知识库。但考虑到数据安全的问题,我们并不能将所有的数据都交付给云端大模型。 那么如何在 FastGPT 上接入私有化模型呢?本文就以清华的 ChatGLM2 为例,为各位讲解如...
5,519
0
petrpan-code/labring/FastGPT/docSite/content/docs
petrpan-code/labring/FastGPT/docSite/content/docs/custom-models/m3e.md
--- title: '接入 M3E 向量模型' description: ' 将 FastGPT 接入私有化模型 M3E' icon: 'model_training' draft: false toc: true weight: 920 --- ## 前言 FastGPT 默认使用了 openai 的 embedding 向量模型,如果你想私有部署的话,可以使用 M3E 向量模型进行替换。M3E 向量模型属于小模型,资源使用不高,CPU 也可以运行。下面教程是基于 “睡大觉” 同学提供的一个的镜像。 ## 部署镜像 镜像名: `stawky/m3e-large-api:latest` 国内镜像: `registry....
5,520
0
petrpan-code/labring/FastGPT/docSite/content/docs
petrpan-code/labring/FastGPT/docSite/content/docs/development/_index.md
--- weight: 500 title: '开发指南' description: '本地开发 FastGPT 必看' icon: 'code_blocks' draft: false images: [] ---
5,521
0
petrpan-code/labring/FastGPT/docSite/content/docs
petrpan-code/labring/FastGPT/docSite/content/docs/development/configuration.md
--- title: '配置文件介绍' description: 'FastGPT 配置参数介绍' icon: 'settings' draft: false toc: true weight: 520 --- 由于环境变量不利于配置复杂的内容,新版 FastGPT 采用了 ConfigMap 的形式挂载配置文件,你可以在 `projects/app/data/config.json` 看到默认的配置文件。可以参考 [docker-compose 快速部署](/docs/installation/docker/) 来挂载配置文件。 **开发环境下**,你需要将示例配置文件 `config.json` 复制成 `config.lo...
5,522
0
petrpan-code/labring/FastGPT/docSite/content/docs
petrpan-code/labring/FastGPT/docSite/content/docs/development/intro.md
--- title: '快速开始' description: '对 FastGPT 进行开发调试' icon: 'developer_guide' draft: false toc: true weight: 510 --- 本文档介绍了如何设置开发环境以构建和测试 [FastGPT](https://fastgpt.run)。 ## 前置依赖项 您需要在计算机上安装和配置以下依赖项才能构建 [FastGPT](https://fastgpt.run): - [Git](http://git-scm.com/) - [Docker](https://www.docker.com/)(构建镜像) - [Node.js v18...
5,523
0
petrpan-code/labring/FastGPT/docSite/content/docs/development
petrpan-code/labring/FastGPT/docSite/content/docs/development/design/_index.md
--- weight: 540 title: "设计方案" description: "FastGPT 部分设计方案" icon: public draft: false images: [] ---
5,524
0
petrpan-code/labring/FastGPT/docSite/content/docs/development
petrpan-code/labring/FastGPT/docSite/content/docs/development/design/dataset.md
--- weight: 541 title: "数据集" description: "FastGPT 数据集中文件与数据的设计方案" icon: dataset draft: false images: [] --- ## 文件与数据的关系 在 FastGPT 中,文件会通过 MongoDB 的 FS 存储,而具体的数据会通过 PostgreSQL 存储,PG 中的数据会有一列 file_id,关联对应的文件。考虑到旧版本的兼容,以及手动输入、标注数据等,我们给 file_id 增加了一些特殊的值,如下: - manual: 手动输入 - mark: 手动标注的数据 注意,file_id 仅在插入数据时会写入,变更时无法修改...
5,525
0
petrpan-code/labring/FastGPT/docSite/content/docs/development
petrpan-code/labring/FastGPT/docSite/content/docs/development/openapi/_index.md
--- weight: 560 title: "OpenAPI 接口文档" description: "FastGPT OpenAPI 文档" icon: api draft: false images: [] ---
5,526
0
petrpan-code/labring/FastGPT/docSite/content/docs/development
petrpan-code/labring/FastGPT/docSite/content/docs/development/openapi/auth.md
--- title: 'Api Key 使用与鉴权' description: 'FastGPT Api Key 使用与鉴权' icon: 'key' draft: false toc: true weight: 561 --- ## 使用说明 FasGPT OpenAPI 接口允许你使用 Api Key 进行鉴权,从而操作 FastGPT 上的相关服务和资源,例如:调用应用对话接口、上传知识库数据、搜索测试等等。出于兼容性和安全考虑,并不是所有的接口都允许通过 Api Key 访问。 ## 如何查看 BaseURL **注意:BaseURL 不是接口地址,而是所有接口的根地址,直接请求 BaseURL 是没有用的。** ...
5,527
0
petrpan-code/labring/FastGPT/docSite/content/docs/development
petrpan-code/labring/FastGPT/docSite/content/docs/development/openapi/chat.md
--- title: '对话接口' description: 'FastGPT OpenAPI 对话接口' icon: 'chat' draft: false toc: true weight: 562 --- ## 发起对话 {{% alert icon="🤖 " context="success" %}} 该接口的 API Key 需使用`应用特定的 key`,否则会报错。 有些包调用时,`BaseUrl`需要添加`v1`路径,有些不需要,如果出现404情况,可补充`v1`重试。 {{% /alert %}} **对话接口兼容`GPT`的接口!如果你的项目使用的是标准的`GPT`官方接口,可以直接通过修改`Bas...
5,528
0
petrpan-code/labring/FastGPT/docSite/content/docs/development
petrpan-code/labring/FastGPT/docSite/content/docs/development/openapi/dataset.md
--- title: '知识库接口' description: 'FastGPT OpenAPI 知识库接口' icon: 'dataset' draft: false toc: true weight: 563 --- | 如何获取知识库ID(datasetId) | 如何获取文件集合ID(collection_id) | | --------------------- | --------------------- | | ![](/imgs/getDatasetId.png) | ![](/imgs/getfile_id.png) | ## 创建训练订单 **请求示例** ```bash curl --locati...
5,529
0
petrpan-code/labring/FastGPT/docSite/content/docs/development
petrpan-code/labring/FastGPT/docSite/content/docs/development/openapi/share.md
--- title: '分享链接鉴权' description: 'FastGPT 分享链接鉴权' icon: 'share' draft: false toc: true weight: 564 --- ## 使用说明 分享链接鉴权设计的目的在于,将 FastGPT 的对话框安全的接入你现有的系统中。 免登录链接配置中,增加了`凭证校验服务器`后,使用分享链接时会向服务器发起请求,校验链接是否可用,并在每次对话结束后,向服务器发送对话结果。下面以`host`来表示`凭证校验服务器`。服务器接口仅需返回是否校验成功即可,不需要返回其他数据,格式如下: ```json { "success": true, "m...
5,530
0
petrpan-code/labring/FastGPT/docSite/content/docs
petrpan-code/labring/FastGPT/docSite/content/docs/installation/_index.md
--- weight: 700 title: "私有化部署" description: "FastGPT 私有化部署文档" icon: menu_book draft: false images: [] ---
5,531
0
petrpan-code/labring/FastGPT/docSite/content/docs
petrpan-code/labring/FastGPT/docSite/content/docs/installation/docker.md
--- title: 'Docker Compose 快速部署' description: '使用 Docker Compose 快速部署 FastGPT' icon: '' draft: false toc: true weight: 720 --- ## 准备条件 服务器要求:2C2G 起 ### 1. 准备好代理环境(国外服务器可忽略) 确保可以访问 OpenAI,具体方案可以参考:[代理方案](/docs/installation/proxy/)。或直接在 Sealos 上 [部署 OneAPI](/docs/installation/one-api),既解决代理问题也能实现多 Key 轮询、接入其他大模型。 ##...
5,532
0
petrpan-code/labring/FastGPT/docSite/content/docs
petrpan-code/labring/FastGPT/docSite/content/docs/installation/one-api.md
--- title: '接入微软、ChatGLM、本地模型等' description: '通过接入 One API 来实现对各种大模型的支持' icon: 'Api' draft: false toc: true weight: 730 --- * 默认情况下,FastGPT 只配置了 GPT 的 3 个模型,如果你需要接入其他模型,需要进行一些额外配置。 * [One API](https://github.com/songquanpeng/one-api) 是一个 OpenAI 接口管理 & 分发系统,可以通过标准的 OpenAI API 格式访问所有的大模型,开箱即用。 FastGPT 可以通过接入 One API 来实...
5,533
0
petrpan-code/labring/FastGPT/docSite/content/docs
petrpan-code/labring/FastGPT/docSite/content/docs/installation/sealos.md
--- title: "Sealos 一键部署" description: "使用 Sealos 一键部署 FastGPT" icon: "cloud" draft: false toc: true weight: 710 --- Sealos 的服务器在国外,不需要额外处理网络问题,无需服务器、无需魔法、无需域名,支持高并发 & 动态伸缩。点击以下按钮即可一键部署 👇 [![](https://fastly.jsdelivr.net/gh/labring-actions/templates@main/Deploy-on-Sealos.svg)](https://cloud.sealos.io/?openapp=system-...
5,534
0
petrpan-code/labring/FastGPT/docSite/content/docs/installation
petrpan-code/labring/FastGPT/docSite/content/docs/installation/proxy/_index.md
--- weight: 740 title: "代理方案" description: "使用代理访问 OpenAI" icon: public draft: false images: [] ---
5,535
0
petrpan-code/labring/FastGPT/docSite/content/docs/installation
petrpan-code/labring/FastGPT/docSite/content/docs/installation/proxy/cloudflare.md
--- title: "Cloudflare Worker 中转" description: "使用 Cloudflare Worker 实现中转" icon: "foggy" draft: false toc: true weight: 742 --- [参考 "不做了睡觉" 的教程](https://gravel-twister-d32.notion.site/FastGPT-API-ba7bb261d5fd4fd9bbb2f0607dacdc9e) **workers 配置文件** ```js const TELEGRAPH_URL = 'https://api.openai.com'; addEventListene...
5,536
0
petrpan-code/labring/FastGPT/docSite/content/docs/installation
petrpan-code/labring/FastGPT/docSite/content/docs/installation/proxy/http_proxy.md
--- title: "HTTP 代理中转" description: "使用 HTTP 代理实现中转" icon: "http" draft: false toc: true weight: 743 --- 如果你有代理工具(例如 [Clash](https://github.com/Dreamacro/clash) 或者 [sing-box](https://github.com/SagerNet/sing-box)),也可以使用 HTTP 代理来访问 OpenAI。只需要添加以下两个环境变量即可: ```bash AXIOS_PROXY_HOST= AXIOS_PROXY_PORT= ``` 以 Clash 为例,建议指...
5,537
0
petrpan-code/labring/FastGPT/docSite/content/docs/installation
petrpan-code/labring/FastGPT/docSite/content/docs/installation/proxy/nginx.md
--- title: "Nginx 中转" description: "使用 Sealos 部署 Nginx 实现中转" icon: "cloud_sync" draft: false toc: true weight: 741 --- ## 登录 Sealos [Sealos](https://cloud.sealos.io/) ## 创建应用 打开 「应用管理」,点击「新建应用」: ![](/imgs/sealos3.png) ![](/imgs/sealos4.png) ### 填写基本配置 务必开启外网访问,复制外网访问提供的地址。 ![](/imgs/sealos5.png) ### 添加配置文件 ...
5,538
0
petrpan-code/labring/FastGPT/docSite/content/docs/installation
petrpan-code/labring/FastGPT/docSite/content/docs/installation/upgrading/40.md
--- title: '升级到 V4.0' description: 'FastGPT 从旧版本升级到 V4.0 操作指南' icon: 'upgrade' draft: false toc: true weight: 850 --- 如果您是**从旧版本升级到 V4**,由于新版 MongoDB 表变更比较大,需要按照本文档的说明执行一些初始化脚本。 ## 重命名表名 需要连接上 MongoDB 数据库,执行两条命令: ```mongodb db.models.renameCollection("apps") db.sharechats.renameCollection("outlinks") ``` {{% alert...
5,539
0
petrpan-code/labring/FastGPT/docSite/content/docs/installation
petrpan-code/labring/FastGPT/docSite/content/docs/installation/upgrading/41.md
--- title: '升级到 V4.1' description: 'FastGPT 从旧版本升级到 V4.1 操作指南' icon: 'upgrade' draft: false toc: true weight: 849 --- 如果您是**从旧版本升级到 V4.1**,由于新版重新设置了对话存储结构,需要初始化原来的存储内容。 ## 更新环境变量 V4.1 优化了 PostgreSQL 和 MongoDB 的连接变量,只需要填 1 个 URL 即可: 注意:/fastgpt 和 /postgres 是指数据库名称,需要和旧版的变量对应。 ```bash # mongo 配置,不需要改. 如果连不上,可能需要去掉 ?...
5,540
0
petrpan-code/labring/FastGPT/docSite/content/docs/installation
petrpan-code/labring/FastGPT/docSite/content/docs/installation/upgrading/42.md
--- title: '升级到 V4.2' description: 'FastGPT 从旧版本升级到 V4.2 操作指南' icon: 'upgrade' draft: false toc: true weight: 848 --- 99.9%用户不影响,升级 4.2 主要是修改了配置文件中 QAModel 的格式。从原先的数组改成对象: ```json "QAModel": { "model": "gpt-3.5-turbo-16k", "name": "GPT35-16k", "maxToken": 16000, "price": 0 } ``` 改动目的是,我们认为不需要留有选择余地,选...
5,541
0
petrpan-code/labring/FastGPT/docSite/content/docs/installation
petrpan-code/labring/FastGPT/docSite/content/docs/installation/upgrading/421.md
--- title: '升级到 V4.2.1' description: 'FastGPT 从旧版本升级到 V4.2.1 操作指南' icon: 'upgrade' draft: false toc: true weight: 847 --- 私有部署,如果添加了配置文件,需要在配置文件中修改 `VectorModels` 字段。增加 defaultToken 和 maxToken,分别对应直接分段时的默认 token 数量和该模型支持的 token 上限 (通常不建议超过 3000) ```json "VectorModels": [ { "model": "text-embedding-ada-002",...
5,542
0
petrpan-code/labring/FastGPT/docSite/content/docs/installation
petrpan-code/labring/FastGPT/docSite/content/docs/installation/upgrading/43.md
--- title: '升级到 V4.3(需要初始化)' description: 'FastGPT 从旧版本升级到 V4.3 操作指南' icon: 'upgrade' draft: false toc: true weight: 846 --- ## 执行初始化 API 发起 1 个 HTTP 请求 (记得携带 `headers.rootkey`,这个值是环境变量里的) 1. https://xxxxx/api/admin/initv43 ```bash curl --location --request POST 'https://{{host}}/api/admin/initv43' \ --header 'root...
5,543
0
petrpan-code/labring/FastGPT/docSite/content/docs/installation
petrpan-code/labring/FastGPT/docSite/content/docs/installation/upgrading/44.md
--- title: '升级到 V4.4(需要初始化)' description: 'FastGPT 从旧版本升级到 V4.4 操作指南' icon: 'upgrade' draft: false toc: true weight: 845 --- ## 执行初始化 API 发起 1 个 HTTP 请求 (记得携带 `headers.rootkey`,这个值是环境变量里的) 1. https://xxxxx/api/admin/initv44 ```bash curl --location --request POST 'https://{{host}}/api/admin/initv44' \ --header 'root...
5,544
0
petrpan-code/labring/FastGPT/docSite/content/docs/installation
petrpan-code/labring/FastGPT/docSite/content/docs/installation/upgrading/441.md
--- title: '升级到 V4.4.1(需要初始化)' description: 'FastGPT 从旧版本升级到 V4.4.1 操作指南' icon: 'upgrade' draft: false toc: true weight: 844 --- ## 执行初始化 API 发起 1 个 HTTP 请求(记得携带 `headers.rootkey`,这个值是环境变量里的) 1. https://xxxxx/api/admin/initv441 ```bash curl --location --request POST 'https://{{host}}/api/admin/initv441' \ --header ...
5,545
0
petrpan-code/labring/FastGPT/docSite/content/docs/installation
petrpan-code/labring/FastGPT/docSite/content/docs/installation/upgrading/442.md
--- title: '升级到 V4.4.2(需要初始化)' description: 'FastGPT 从旧版本升级到 V4.4.2 操作指南' icon: 'upgrade' draft: false toc: true weight: 843 --- ## 执行初始化 API 发起 1 个 HTTP 请求 (记得携带 `headers.rootkey`,这个值是环境变量里的) 1. https://xxxxx/api/admin/initv442 ```bash curl --location --request POST 'https://{{host}}/api/admin/initv442' \ --header...
5,546
0
petrpan-code/labring/FastGPT/docSite/content/docs/installation
petrpan-code/labring/FastGPT/docSite/content/docs/installation/upgrading/445.md
--- title: 'V4.4.5(需要初始化)' description: 'FastGPT V4.4.5 更新' icon: 'upgrade' draft: false toc: true weight: 842 --- ## 执行初始化 API 发起 1 个 HTTP 请求(记得携带 `headers.rootkey`,这个值是环境变量里的) 1. https://xxxxx/api/admin/initv445 ```bash curl --location --request POST 'https://{{host}}/api/admin/initv445' \ --header 'rootkey: {{ro...
5,547
0
petrpan-code/labring/FastGPT/docSite/content/docs/installation
petrpan-code/labring/FastGPT/docSite/content/docs/installation/upgrading/446.md
--- title: 'V4.4.6' description: 'FastGPT V4.4.6 更新' icon: 'upgrade' draft: false toc: true weight: 841 --- ## 功能介绍 1. 高级编排新增模块 - 应用调用,可调用其他应用。 2. 新增 - 必要连接校验 3. 修复 - 下一步指引在免登录中身份问题。
5,548
0
petrpan-code/labring/FastGPT/docSite/content/docs/installation
petrpan-code/labring/FastGPT/docSite/content/docs/installation/upgrading/447.md
--- title: 'V4.4.7(需执行升级脚本)' description: 'FastGPT V4.4.7 更新(需执行升级脚本)' icon: 'upgrade' draft: false toc: true weight: 840 --- ## 执行初始化 API 发起 1 个 HTTP 请求({{rootkey}} 替换成环境变量里的`rootkey`,{{host}}替换成自己域名) 1. https://xxxxx/api/admin/initv447 ```bash curl --location --request POST 'https://{{host}}/api/admin/initv447' \...
5,549
0
petrpan-code/labring/FastGPT/docSite/content/docs/installation
petrpan-code/labring/FastGPT/docSite/content/docs/installation/upgrading/45.md
--- title: 'V4.5(需进行较为复杂更新)' description: 'FastGPT V4.5 更新' icon: 'upgrade' draft: false toc: true weight: 839 --- FastGPT V4.5 引入 PgVector0.5 版本的 HNSW 索引,极大的提高了知识库检索的速度,比起`IVFFlat`索引大致有3~10倍的性能提升,可轻松实现百万数据毫秒级搜索。缺点在于构建索引的速度非常慢,4c16g 500w 组数据使用`并行构建`大约花了 48 小时。具体参数配置可参考 [PgVector官方](https://github.com/pgvector/pgvector...
5,550
0
petrpan-code/labring/FastGPT/docSite/content/docs/installation
petrpan-code/labring/FastGPT/docSite/content/docs/installation/upgrading/451.md
--- title: 'V4.5.1(需进行初始化)' description: 'FastGPT V4.5.1 更新' icon: 'upgrade' draft: false toc: true weight: 838 --- ## 执行初始化 API 发起 1 个 HTTP 请求({{rootkey}} 替换成环境变量里的`rootkey`,{{host}}替换成自己域名) 1. https://xxxxx/api/admin/initv451 ```bash curl --location --request POST 'https://{{host}}/api/admin/initv451' \ --header ...
5,551
0
petrpan-code/labring/FastGPT/docSite/content/docs/installation
petrpan-code/labring/FastGPT/docSite/content/docs/installation/upgrading/452.md
--- title: 'V4.5.2' description: 'FastGPT V4.5.2 更新' icon: 'upgrade' draft: false toc: true weight: 837 --- ## 功能介绍 ### Fast GPT V4.5.2 1. 新增 - 模块插件,允许自行组装插件进行模块复用。 2. 优化 - 知识库引用提示。
5,552
0
petrpan-code/labring/FastGPT/docSite/content/docs/installation
petrpan-code/labring/FastGPT/docSite/content/docs/installation/upgrading/46.md
--- title: 'V4.6(需要初始化)' description: 'FastGPT V4.6 更新' icon: 'upgrade' draft: false toc: true weight: 836 --- **V4.6 版本加入了简单的团队功能,可以邀请其他用户进来管理资源。该版本升级后无法执行旧的升级脚本,且无法回退。** ## 1。更新镜像并变更配置文件 更新镜像至 latest 或者 v4.6 版本。商业版镜像更新至 V0.2.1 最新配置可参考:[V46 版本最新 config.json](/docs/development/configuration),商业镜像配置文件也更新,参考最新的飞书文档。 ...
5,553
0
petrpan-code/labring/FastGPT/docSite/content/docs/installation
petrpan-code/labring/FastGPT/docSite/content/docs/installation/upgrading/461.md
--- title: 'V4.6.1' description: 'FastGPT V4.6 .1' icon: 'upgrade' draft: false toc: true weight: 835 --- ## V4.6.1 功能介绍 1. 新增 - GPT4-v 模型支持 2. 新增 - whisper 语音输入 3. 优化 - TTS 流传输 4. 优化 - TTS 缓存
5,554
0
petrpan-code/labring/FastGPT/docSite/content/docs/installation
petrpan-code/labring/FastGPT/docSite/content/docs/installation/upgrading/_index.md
--- weight: 760 title: "版本更新/升级操作" description: "FastGPT 版本更新介绍及升级操作" icon: upgrade draft: false images: [] ---
5,555
0
petrpan-code/labring/FastGPT/docSite/content/docs
petrpan-code/labring/FastGPT/docSite/content/docs/use-cases/_index.md
--- weight: 300 title: '使用案例' description: '有关 FastGPT 其他实践案例的更多信息' icon: 'cases' draft: false images: [] ---
5,556
0
petrpan-code/labring/FastGPT/docSite/content/docs
petrpan-code/labring/FastGPT/docSite/content/docs/use-cases/ai_settings.md
--- title: "AI 高级配置说明" description: "FastGPT AI 高级配置说明" icon: "sign_language" draft: false toc: true weight: 310 --- 在 FastGPT 的 AI 对话模块中,有一个 AI 高级配置,里面包含了 AI 模型的参数配置,本文详细介绍这些配置的含义。 ## 返回AI内容 这是一个开关,打开的时候,当 AI 对话模块运行时,会将其输出的内容返回到浏览器(API响应);如果关闭,AI 输出的内容不会返回到浏览器,但是生成的内容仍可以通过【AI回复】进行输出。你可以将【AI回复】连接到其他模块中。 ## 温度 可选范围...
5,557
0
petrpan-code/labring/FastGPT/docSite/content/docs
petrpan-code/labring/FastGPT/docSite/content/docs/use-cases/datasetEngine.md
--- title: "知识库结构讲解" description: "本节会详细介绍 FastGPT 知识库结构设计,理解其 QA 的存储格式和多向量映射,以便更好的构建知识库。这篇介绍主要以使用为主,详细原理不多介绍。" icon: "dataset" draft: false toc: true weight: 311 --- ## 理解向量 FastGPT 采用了 RAG 中的 Embedding 方案构建知识库,要使用好 FastGPT 需要简单的理解`Embedding`向量是如何工作的及其特点。 人类的文字、图片、视频等媒介是无法直接被计算机理解的,要想让计算机理解两段文字是否有相似性、相关性,通常需要将它们转成计...
5,558
0
petrpan-code/labring/FastGPT/docSite/content/docs
petrpan-code/labring/FastGPT/docSite/content/docs/use-cases/feishu.md
--- title: " 接入飞书 " description: "FastGPT 接入飞书机器人 " icon: "chat" draft: false toc: true weight: 322 --- # FastGPT 一分钟接入飞书 [Feishu OpenAI GitHub 地址](https://github.com/ConnectAI-E/Feishu-OpenAI) [查看视频教程](https://www.bilibili.com/video/BV1Su4y1r7R3/?spm_id_from=333.999.list.card_archive.click) 由于 FastGPT 的 API 接口和 Op...
5,559
0
petrpan-code/labring/FastGPT/docSite/content/docs
petrpan-code/labring/FastGPT/docSite/content/docs/use-cases/kb.md
--- title: " 打造高质量 AI 知识库" description: " 利用 FastGPT 打造高质量 AI 知识库" icon: "school" draft: false toc: true weight: 340 --- ## 前言 自从去年 12 月 ChatGPT 发布后,带动了新的一轮应用交互革命。尤其是 GPT-3.5 接口全面放开后,LLM 应用雨后春笋般快速涌现,但因为 GPT 的可控性、随机性和合规性等问题,很多应用场景都没法落地。 3 月时候,在 Twitter 上刷到一个老哥使用 GPT 训练自己的博客记录,并且成本非常低(比起 FT)。他给出了一个完整的流程图: ![向量搜索 GPT ...
5,560
0
petrpan-code/labring/FastGPT/docSite/content/docs
petrpan-code/labring/FastGPT/docSite/content/docs/use-cases/onwechat.md
--- title: "对接 chatgpt-on-wechat" description: "FastGPT 对接 chatgpt-on-wechat" icon: "chat" draft: false toc: true weight: 312 --- # 1 分钟对接 chatgpt-on-wechat [chatgpt-on-wechat GitHub 地址](https://github.com/zhayujie/chatgpt-on-wechat) 由于 FastGPT 的 API 接口和 OpenAI 的规范一致,可以无需变更原来的应用即可使用 FastGPT 上编排好的应用。API 使用可参考 [这篇文章](...
5,561
0
petrpan-code/labring/FastGPT/docSite/content/docs
petrpan-code/labring/FastGPT/docSite/content/docs/use-cases/openapi.md
--- title: "对接第三方 GPT 应用" description: "通过与 OpenAI 兼容的 API 对接第三方应用" icon: "model_training" draft: false toc: true weight: 312 --- ## 获取 API 秘钥 依次选择应用 -> 「API访问」,然后点击「API 密钥」来创建密钥。 {{% alert context="warning" %}} 密钥需要自己保管好,一旦关闭就无法再复制密钥,只能创建新密钥再复制。 {{% /alert %}} ![](/imgs/fastgpt-api.png) {{% alert icon="🍅" contex...
5,562
0
petrpan-code/labring/FastGPT/docSite/content/docs
petrpan-code/labring/FastGPT/docSite/content/docs/use-cases/wechat.md
--- title: " 接入微信和企业微信 " description: "FastGPT 接入微信和企业微信 " icon: "chat" draft: false toc: true weight: 322 --- # FastGPT 三分钟接入微信/企业微信 私人微信和企业微信接入的方式基本一样,不同的地方会刻意指出。 [查看视频教程](https://www.bilibili.com/video/BV1cu411F7FN/?spm_id_from=333.1007.top_right_bar_window_history.content.click&vd_source=903c2b09b7412037c2eddc6...
5,563
0
petrpan-code/labring/FastGPT/docSite/content/docs
petrpan-code/labring/FastGPT/docSite/content/docs/workflow/_index.md
--- weight: 100 title: '高级编排' description: 'FastGPT 高级编排文档' icon: 'family_history' draft: false images: [] ---
5,564
0
petrpan-code/labring/FastGPT/docSite/content/docs
petrpan-code/labring/FastGPT/docSite/content/docs/workflow/intro.md
--- title: "高级编排介绍" description: "快速了解 FastGPT 高级编排" icon: "circle" draft: false toc: true weight: 110 --- FastGPT 从 V4 版本开始采用新的交互方式来构建 AI 应用。使用了 Flow 节点编排的方式来实现复杂工作流,提高可玩性和扩展性。但同时也提高了上手的门槛,有一定开发背景的用户使用起来会比较容易。 [查看视频教程](https://www.bilibili.com/video/BV1aB4y1Z7Hy/?spm_id_from=333.999.list.card_archive.click&vd_source...
5,565
0
petrpan-code/labring/FastGPT/docSite/content/docs/workflow
petrpan-code/labring/FastGPT/docSite/content/docs/workflow/examples/_index.md
--- weight: 140 title: "编排示例" description: "介绍 FastGPT 的高级编排实践案例" icon: "list" draft: false images: [] ---
5,566
0
petrpan-code/labring/FastGPT/docSite/content/docs/workflow
petrpan-code/labring/FastGPT/docSite/content/docs/workflow/examples/fixingEvidence.md
--- title: '固定开头和结尾内容' description: '利用指定回复,创建固定的开头和结尾' icon: 'healing' draft: false toc: true weight: 142 --- ![](/imgs/demo-fix-evidence1.png) ![](/imgs/demo-fix-evidence2.png) 如上图,可以通过指定回复编排一个固定的开头和结尾内容。 ## 模块编排 复制下面配置,点击「高级编排」右上角的导入按键,导入该配置。 {{% details title="编排配置" closed="true" %}} ```json [ { "modu...
5,567
0
petrpan-code/labring/FastGPT/docSite/content/docs/workflow
petrpan-code/labring/FastGPT/docSite/content/docs/workflow/examples/google_search.md
--- title: '联网 GPT' description: '将 FastGPT 外接搜索引擎' icon: 'search' draft: false toc: true weight: 143 --- ![](/imgs/google_search_1.png) ![](/imgs/google_search_2.png) 如上图,利用 HTTP 模块,你可以轻松的外接一个搜索引擎。这里以调用 Google Search API 为例。注意:本文主要是为了介绍 HTTP 模型,具体的搜索效果需要依赖提示词和搜索引擎,这两部分可能需要更多的调试。 ## 注册 Google Search API [参考这篇文章](h...
5,568
0
petrpan-code/labring/FastGPT/docSite/content/docs/workflow
petrpan-code/labring/FastGPT/docSite/content/docs/workflow/examples/lab_appointment.md
--- title: '实验室预约' description: '展示高级编排操作数据库的能力' icon: 'database' draft: false toc: true weight: 141 --- ![](/imgs/demo-appointment1.png) ![](/imgs/demo-appointment2.png) ![](/imgs/demo-appointment3.png) 本示例演示了利用问题分类、内容提取和 HTTP 模块实现数据库的 CRUD 操作。以一个实验室预约为例,用户可以通过对话系统预约、取消、修改预约和查询预约记录。 # 编排流程解析 编排 Tips:**从左往右编辑流程;尽...
5,569
0
petrpan-code/labring/FastGPT/docSite/content/docs/workflow
petrpan-code/labring/FastGPT/docSite/content/docs/workflow/examples/op_question.md
--- title: '优化知识库搜索词' description: '利用 GPT 优化和完善知识库搜索词,实现上下文关联搜索' icon: 'search' draft: false toc: true weight: 144 --- ![](/imgs/demo_op_question1.png) | 优化前 | 优化后 | | --------------------- | --------------------- | | ![](/imgs/demo_op_question3.png) | ![](/imgs/demo_op_ques...
5,570
0
petrpan-code/labring/FastGPT/docSite/content/docs/workflow
petrpan-code/labring/FastGPT/docSite/content/docs/workflow/examples/versatile_assistant.md
--- title: '全能助手' description: '赋予联网功能,将用户问题进行分类,细分后对接对应 API 获取信息,经 GPT 整理后返回' icon: 'search' draft: false toc: true weight: 143 --- ![](/imgs/versatile_assistant_1.png) 众所周知 GPT 只是一个语言模型,功能上有很多局限,但只要综合利用高级编排各模块功能,就可以轻松突破原有 GPT 的局限,实现更多功能。 当然,所谓“全能助手”只是一个遥远的设想,高级编排的玩法有很大的可能性,本文只是扩展了诸如【天气查询】、【微博热搜查询】的功能,主要还是希望大家能通过案例...
5,571
0
petrpan-code/labring/FastGPT/docSite/content/docs/workflow
petrpan-code/labring/FastGPT/docSite/content/docs/workflow/modules/_index.md
--- weight: 120 title: "模块介绍" description: "介绍 FastGPT 的常用模块" icon: "apps" draft: false images: [] ---
5,572
0
petrpan-code/labring/FastGPT/docSite/content/docs/workflow
petrpan-code/labring/FastGPT/docSite/content/docs/workflow/modules/ai_chat.md
--- title: "AI 对话" description: "FastGPT AI 对话模块介绍" icon: "chat" draft: false toc: true weight: 123 --- ## 特点 - 可重复添加(复杂编排时防止线太乱,可以更美观) - 有外部输入 - 有静态配置 - 触发执行 - 核心模块 ![](/imgs/aichat.png) ## 参数说明 ### 对话模型 可以通过 [config.json](/docs/installation/reference/models/) 配置可选的对话模型,通过 [one-api](/docs/installation/one-api/) ...
5,573
0
petrpan-code/labring/FastGPT/docSite/content/docs/workflow
petrpan-code/labring/FastGPT/docSite/content/docs/workflow/modules/content_extract.md
--- title: "内容提取" description: "FastGPT 内容提取模块介绍" icon: "content_paste_go" draft: false toc: true weight: 125 --- ## 特点 - 可重复添加 - 有外部输入 - 需要手动配置 - 触发执行 - function_call 模块 - 核心模块 ![](/imgs/extract1.png) ## 功能 从文本中提取结构化数据,通常是配合 HTTP 模块实现扩展。也可以做一些直接提取操作,例如:翻译。 ## 参数说明 ### 提取要求描述 顾名思义,给模型设置一个目标,需要提取哪些内容。 **示例 1** ...
5,574
0
petrpan-code/labring/FastGPT/docSite/content/docs/workflow
petrpan-code/labring/FastGPT/docSite/content/docs/workflow/modules/guide.md
--- title: "用户引导" description: "FastGPT 用户引导模块介绍" icon: "psychology" draft: false toc: true weight: 127 --- ## 特点 - 仅可添加 1 个 - 无外部输入 - 不参与实际调度 如图,可以在用户提问前给予一定引导。并可以设置引导问题。 ![](/imgs/guide.png)
5,575
0
petrpan-code/labring/FastGPT/docSite/content/docs/workflow
petrpan-code/labring/FastGPT/docSite/content/docs/workflow/modules/history.md
--- title: "历史记录" description: "FastGPT 历史记录模块介绍" icon: "history" draft: false toc: true weight: 128 --- # 特点 - 可重复添加(防止复杂编排时线太乱,重复添加可以更美观) - 无外部输入 - 流程入口 - 自动执行 每次对话时,会从数据库取最多 n 条聊天记录作为上下文。注意,不是指本轮对话最多 n 条上下文,本轮对话还包括:提示词、限定词、引用内容和问题。 ![](/imgs/history.png)
5,576
0
petrpan-code/labring/FastGPT/docSite/content/docs/workflow
petrpan-code/labring/FastGPT/docSite/content/docs/workflow/modules/http.md
--- title: "HTTP 模块" description: "FastGPT HTTP 模块介绍" icon: "http" draft: false toc: true weight: 129 --- ## 特点 - 可重复添加 - 有外部输入 - 手动配置 - 触发执行 - 核中核模块 ![](/imgs/http1.png) ## 介绍 HTTP 模块会向对应的地址发送一个 POST 请求(Body 中携带 JSON 类型的参数,具体的参数可自定义),并接收一个 JSON 响应值,字段也是自定义。如上图中,我们定义了一个入参:「提取的字段」(定义的 key 为 appointment,类型为 string)和...
5,577
0
petrpan-code/labring/FastGPT/docSite/content/docs/workflow
petrpan-code/labring/FastGPT/docSite/content/docs/workflow/modules/input.md
--- title: "用户问题" description: "FastGPT 用户问题模块介绍" icon: "input" draft: false toc: true weight: 131 --- ## 特点 - 可重复添加(防止复杂编排时线太乱,重复添加可以更美观) - 无外部输入 - 流程入口 - 自动执行 ![](/imgs/chatinput.png)
5,578
0
petrpan-code/labring/FastGPT/docSite/content/docs/workflow
petrpan-code/labring/FastGPT/docSite/content/docs/workflow/modules/kb_search.md
--- title: '知识库搜索' description: 'FastGPT AI 知识库搜索模块介绍' icon: 'chat' draft: false toc: true weight: 124 --- ## 特点 - 可重复添加(复杂编排时防止线太乱,可以更美观) - 有外部输入 - 有静态配置 - 触发执行 - 核心模块 ![](/imgs/flow-kbsearch1.png) ## 参数说明 ### 输入 - 关联的知识库 可以选择一个或多个**相同向量模型**的知识库,用于向量搜索。 ### 输入 - 相似度 学名称为距离,两个向量之间距离,可以认为是两个向量的相似度,又可以映射成文本之间的相似度...
5,579
0
petrpan-code/labring/FastGPT/docSite/content/docs/workflow
petrpan-code/labring/FastGPT/docSite/content/docs/workflow/modules/question.md
--- title: "问题分类" description: "FastGPT 问题分类模块介绍" icon: "quiz" draft: false toc: true weight: 126 --- ## 特点 - 可重复添加 - 有外部输入 - 需要手动配置 - 触发执行 - function_call 模块 ![](/imgs/cq1.png) ## 功能 可以将用户的问题进行分类,分类后执行不同操作。在一些较模糊的场景中,分类效果不是很明显。 ## 参数说明 ### 系统提示词 被放置在对话最前面,可用于补充说明分类内容的定义。例如问题会被分为: 1. 打招呼 2. Laf 常见问题 3. 其他问题 由...
5,580
0
petrpan-code/labring/FastGPT/docSite/content/docs/workflow
petrpan-code/labring/FastGPT/docSite/content/docs/workflow/modules/reply.md
--- title: "指定回复" description: "FastGPT 指定回复模块介绍" icon: "reply" draft: false toc: true weight: 130 --- ## 特点 - 可重复添加(防止复杂编排时线太乱,重复添加可以更美观) - 可手动输入 - 可外部输入 - 会输出结果给客户端 制定回复模块通常用户特殊状态回复,当然你也可以像图 2 一样,实现一些比较骚的操作~ 触发逻辑非常简单: 1. 一种是写好回复内容,通过触发器触发。 2. 一种是不写回复内容,直接由外部输入触发,并回复输入的内容。 {{< figure src="/imgs/specialreply.p...
5,581
0
petrpan-code/labring/FastGPT/docSite/content/docs/workflow
petrpan-code/labring/FastGPT/docSite/content/docs/workflow/modules/trigger.md
--- title: "触发器" description: "FastGPT 触发器模块介绍" icon: "work_history" draft: false toc: true weight: 121 --- 细心的同学可以发现,在每个功能模块里都会有一个叫【触发器】的外部输入,并且是 any 类型。 它的**核心作用**就是控制模块的执行时机,以下图两个知识库搜索中的【AI 对话】模块为例子: | 图 1 | 图 2 | | ---------------------------- | -------------------...
5,582
0
petrpan-code/labring/FastGPT/docSite/content/docs/workflow
petrpan-code/labring/FastGPT/docSite/content/docs/workflow/modules/variable.md
--- title: "全局变量" description: "FastGPT 全局变量模块介绍" icon: "variables" draft: false toc: true weight: 122 --- ## 特点 - 仅可添加 1 个 - 需要手动配置 - 对其他模块有影响 - 可作为用户引导 ## 说明 可以在对话前设置一些问题,让用户输入或选择,并将用户输入/选择的结果注入到其他模块中。目前仅会注入到 string 类型的数据里(对应蓝色圆圈的输入)。 如下图,定义了两个变量:目标语言和下拉框测试(忽略) 用户在对话前会被要求先填写目标语言,配合用户引导,我们就构建了一个简单的翻译机器人。**目标语言**...
5,583
0
petrpan-code/labring/FastGPT/docSite
petrpan-code/labring/FastGPT/docSite/i18n/zh-cn.toml
[lang_select_title] other = "语言切换" [search_title] other = "搜索" [search_navigate] other = "导航" [search_select] other = "选中" [search_close] other = "关闭" [search_cancel] other = "取消" [search_no_results] other = "没有结果:" [search_no_recent_searches] other = "没有最近搜索" [search_try_search]...
5,584
0
petrpan-code/labring/FastGPT/docSite/layouts
petrpan-code/labring/FastGPT/docSite/layouts/docs/baseof.html
<!DOCTYPE html> {{ $.Scratch.Delete "social_list" }} {{ $.Scratch.Set "pathName" (printf "%s" (.Site.Params.docs.pathName | default "docs")) }} <!-- social_list --> <!-- change --> {{ $social_params := slice "github" "twitter" "instagram" "rss" "wechat" }} {{ range $social_params }} {{ if isset site.Params.social ....
5,585
0
petrpan-code/labring/FastGPT/docSite/layouts
petrpan-code/labring/FastGPT/docSite/layouts/docs/single.html
{{ define "main" }} <!-- override Prism's default copy messages to 'empty'. Required by CSS styling. see: https://prismjs.com/plugins/copy-to-clipboard/#styling --> <div data-prismjs-copy="" data-prismjs-copy-success="" data-prismjs-copy-error=""> {{ .Content }} </div> <!-- change --> ...
5,586
0
petrpan-code/labring/FastGPT/docSite/layouts
petrpan-code/labring/FastGPT/docSite/layouts/partials/google-fonts.html
{{ if .Site.Params.google_fonts }} {{ $fonts := slice }} {{ range .Site.Params.google_fonts }} {{ $family := replace (index (.) 0) " " "+" }} {{ $weights := replace (index (.) 1) " " "" }} {{ $string := print $family ":" $weights }} {{ $fonts = $fonts | append $string }} {{ ...
5,587
0
petrpan-code/labring/FastGPT/docSite/layouts/partials
petrpan-code/labring/FastGPT/docSite/layouts/partials/docs/footer.html
<!-- Footer Start --> <footer class="shadow py-3 d-print-none"> <div class="row align-items-center" style="height: 90px"> <div class="col"> <div class="text-sm-start text-center mx-md-2"> <p class="mb-0"> {{ $yearToken := (cond (isset .Site...
5,588
0
petrpan-code/labring/FastGPT/docSite/layouts/partials
petrpan-code/labring/FastGPT/docSite/layouts/partials/docs/gitinfo.html
{{ $repoURL := slice .Site.Params.docs.repoURL }} {{ $repoHostname := (urls.Parse (.Site.Params.docs.repoURL)).Hostname }} {{ $filePath := replace .File.Path "\\" "/" }} {{ $iconPath := "" }} {{ if strings.Contains ($repoHostname | lower) "github" }} {{ $repoURL = $repoURL | append "blob" (.Site.Params.docs.repoBr...
5,589
0
petrpan-code/labring/FastGPT/docSite/layouts/partials
petrpan-code/labring/FastGPT/docSite/layouts/partials/docs/head.html
<head> <meta charset="utf-8" /> <title> {{- $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }} {{- if eq $url "/" }} {{- .Site.Title }} {{- else }} {{- if .Params.heading }} {{ .Params.heading }} {{ else }} {{...
5,590
0
petrpan-code/labring/FastGPT/docSite/layouts/partials
petrpan-code/labring/FastGPT/docSite/layouts/partials/docs/sidebar.html
<!-- sidebar-wrapper --> <nav id="sidebar" class="sidebar-wrapper"> <div class="sidebar-brand"> <!-- change --> <a href='{{ relLangURL "" }}' aria-label="HomePage" alt="HomePage" style="text-transform: unset;"> {{ with resources.Get "images/logos/logo.svg" }} {{ .Content ...
5,591
0
petrpan-code/labring/FastGPT/docSite/layouts/partials
petrpan-code/labring/FastGPT/docSite/layouts/partials/docs/toc.html
<toc> <!-- change --> <div class="fw-bold text-uppercase mb-2">{{ .Title }}</div> {{ if eq .Site.Params.docs.scrollSpy true -}} {{ .TableOfContents | replaceRE "<nav id=\"TableOfContents\">" "<nav id=\"toc\">" | safeHTML }} {{ else -}} {{ .TableOfContents }} {{ end -}} </toc>
5,592
0
petrpan-code/labring/FastGPT/docSite/layouts/partials
petrpan-code/labring/FastGPT/docSite/layouts/partials/docs/top-header.html
<!-- Top Header --> <div id="top-header" class="top-header d-print-none"> <div class="header-bar d-flex justify-content-between"> <div class="d-flex align-items-center"> <a href='{{ relLangURL "" }}' class="logo-icon me-3" aria-label="HomePage" alt="HomePage"> <div class="small">...
5,593
0
petrpan-code/labring/FastGPT/docSite/layouts/partials/docs
petrpan-code/labring/FastGPT/docSite/layouts/partials/docs/footer/docsearch.html
<script> window.addEventListener('DOMContentLoaded', function() { // DocSearch Config docsearch({ container: '#docsearch', appId: '{{ .Site.Params.docsearch.appID }}', apiKey: '{{ .Site.Params.docsearch.apiKey }}', indexName: '{{ .Site.Params.docsearch...
5,594
0
petrpan-code/labring/FastGPT/docSite/layouts/partials/docs
petrpan-code/labring/FastGPT/docSite/layouts/partials/docs/footer/footer-scripts.html
{{ $dayjs := resources.Get (printf "/%s/%s" ($.Scratch.Get "pathName") "js/dayjs.min.js") }} {{ $relativeTime := resources.Get (printf "/%s/%s" ($.Scratch.Get "pathName") "js/relativeTime.min.js") }} {{ $app := resources.Get (printf "/%s/%s" ($.Scratch.Get "pathName") "js/app.js") -}} {{ $slice := slice $dayjs $relati...
5,595
0
petrpan-code/labring/FastGPT/docSite/layouts/partials/docs
petrpan-code/labring/FastGPT/docSite/layouts/partials/docs/head/favicon.html
{{ if os.FileExists "static/favicon.ico" -}} <link rel="icon" href="{{ "/favicon.ico" | absURL }}" sizes="any"> {{ end -}} {{ if os.FileExists "static/favicon.svg" -}} <link rel="icon" type="image/svg+xml" href="{{ "/favicon.svg" | absURL }}"> {{ end -}} {{ if os.FileExists "static/apple-touch-icon.png" -}} <link rel="...
5,596
0
petrpan-code/labring/FastGPT/docSite/layouts/partials
petrpan-code/labring/FastGPT/docSite/layouts/partials/head/favicon.html
{{ if os.FileExists "static/favicon.ico" -}} <link rel="icon" href="{{ "/favicon.ico" | absURL }}" sizes="any"> {{ end -}} {{ if os.FileExists "static/favicon.svg" -}} <link rel="icon" type="image/svg+xml" href="{{ "/favicon.svg" | absURL }}"> {{ end -}} {{ if os.FileExists "static/apple-touch-icon.png" -}} <link rel="...
5,597
0
petrpan-code/labring/FastGPT/docSite/layouts
petrpan-code/labring/FastGPT/docSite/layouts/shortcodes/bilibili.html
<!DOCTYPE HTML> <html> <head> <!-- style 样式 是为了让网页上的视频框按比例显示而非固定的大小 --> <style type="text/css"> .aspect-ratio { position: relative; width: 100%; height: 0; padding-bottom: 75%; margin-bottom: 1rem; } .aspect-ratio iframe { position: absolut...
5,598
0
petrpan-code/labring/FastGPT/docSite/layouts
petrpan-code/labring/FastGPT/docSite/layouts/shortcodes/details.html
{{- $title := .Get "title" | default "" -}} {{- $closed := eq (.Get "closed") "true" | default false -}} <details class="last-of-type:mb-0 rounded p-2 mt-4 mb-4 group alert-info" {{ if not $closed }}open{{ end }}> <summary class="p-1 rounded"> <strong>{{ $title | markdownify }}</strong> </summary> <div clas...
5,599