From fb078075f270970229fe2093f094cd2bd025ae61 Mon Sep 17 00:00:00 2001 From: c121914yu Date: Mon, 21 Apr 2025 08:21:17 +0000 Subject: [PATCH] deploy: 9f8b6dbc5fd26f43ed4ac1eeff57bc39483148d2 --- docs/development/docker/index.html | 16 +- docs/development/faq/index.html | 18 +- docs/development/openapi/chat/index.html | 150 ++++++++-------- docs/development/openapi/dataset/index.html | 170 +++++++++--------- docs/development/openapi/share/index.html | 30 ++-- docs/guide/admin/sso/index.html | 105 ++++++----- docs/guide/dashboard/workflow/http/index.html | 16 +- .../knowledge_base/api_dataset/index.html | 20 +-- 8 files changed, 272 insertions(+), 253 deletions(-) diff --git a/docs/development/docker/index.html b/docs/development/docker/index.html index c2d4263f3..319e69bf3 100644 --- a/docs/development/docker/index.html +++ b/docs/development/docker/index.html @@ -34,9 +34,9 @@ FAQ
article

Docker Compose 快速部署

使用 Docker Compose 快速部署 FastGPT

前置知识

  1. 基础的网络知识:端口,防火墙……
  2. Docker 和 Docker Compose 基础知识
  3. 大模型相关接口和参数
  4. RAG 相关知识:向量模型,向量数据库,向量检索

部署架构图

推荐配置

PgVector版本

非常轻量,适合知识库索引量在 5000 万以下。

环境最低配置(单节点)推荐配置
测试(可以把计算进程设置少一些)2c4g2c8g
100w 组向量4c8g 50GB4c16g 50GB
500w 组向量8c32g 200GB16c64g 200GB

Milvus版本

对于亿级以上向量性能更优秀。

点击查看 Milvus 官方推荐配置

环境最低配置(单节点)推荐配置
测试2c8g4c16g
100w 组向量未测试
500w 组向量

zilliz cloud版本

Zilliz Cloud 由 Milvus 原厂打造,是全托管的 SaaS 向量数据库服务,性能优于 Milvus 并提供 SLA,点击使用 Zilliz Cloud

由于向量库使用了 Cloud,无需占用本地资源,无需太关注。

前置工作

1. 确保网络环境

如果使用OpenAI等国外模型接口,请确保可以正常访问,否则会报错:Connection error 等。 方案可以参考:代理方案

2. 准备 Docker 环境

diff --git a/docs/guide/dashboard/workflow/http/index.html b/docs/guide/dashboard/workflow/http/index.html index 82ed3d939..e333670bc 100644 --- a/docs/guide/dashboard/workflow/http/index.html +++ b/docs/guide/dashboard/workflow/http/index.html @@ -34,9 +34,9 @@ FAQ
http

HTTP 请求

FastGPT HTTP 模块介绍

特点

  • 可重复添加
  • 手动配置
  • 触发执行
  • 核中核模块

介绍

HTTP 模块会向对应的地址发送一个 HTTP 请求,实际操作与 Postman 和 ApiFox 这类直流工具使用差不多。

  • Params 为路径请求参数,GET请求中用的居多。
  • Body 为请求体,POST/PUT请求中用的居多。
  • Headers 为请求头,用于传递一些特殊的信息。
  • 自定义变量中可以接收前方节点的输出作为变量
  • 3 种数据中均可以通过 {{}} 来引用变量。
  • url 也可以通过 {{}} 来引用变量。
  • 变量来自于全局变量系统变量前方节点输出

参数结构

系统变量说明

你可以将鼠标放置在请求参数旁边的问号中,里面会提示你可用的变量。

  • appId: 应用的ID
  • chatId: 当前对话的ID,测试模式下不存在。
  • responseChatItemId: 当前对话中,响应的消息ID,测试模式下不存在。
  • variables: 当前对话的全局变量。
  • cTime: 当前时间。
  • histories: 历史记录(默认最多取10条,无法修改长度)

Params, Headers

不多描述,使用方法和Postman, ApiFox 基本一致。

可通过 {{key}} 来引入变量。例如:

keyvalue
appId{{appId}}
AuthorizationBearer {{token}}

Body

只有特定请求类型下会生效。

可以写一个自定义的 Json,并通过 {{key}} 来引入变量。例如: