diff --git a/README.md b/README.md index 265aeba0e..d32175ed7 100644 --- a/README.md +++ b/README.md @@ -37,10 +37,11 @@ FastGPT 是一个基于 LLM 大语言模型的知识库问答系统,提供开 - [x] 多 LLM 模型对话 - [x] 文本内容提取成结构化数据 - [x] HTTP 扩展 - - [ ] 沙盒 JS 运行模块 + - [ ] 嵌入 Laf,实现在线编写 HTTP 模块 - [ ] 连续对话引导 - [ ] 对话多路线选择 - - [ ] 源文件引用追踪 + - [x] 源文件引用追踪 + - [ ] 自定义文件阅读器 2. 丰富的知识库预处理 - [x] 多库复用,混用 - [x] chunk 记录修改和删除 diff --git a/client/.env.template b/client/.env.template index d7717451a..62f26a512 100644 --- a/client/.env.template +++ b/client/.env.template @@ -4,6 +4,8 @@ DEFAULT_ROOT_PSW=123456 DB_MAX_LINK=5 # token TOKEN_KEY=dfdasfdas +# 文件阅读时的秘钥 +FILE_TOKEN_KEY=filetokenkey # root key, 最高权限 ROOT_KEY=fdafasd # openai 基本地址,可用作中转。 diff --git a/docSite/content/docs/installation/upgrading/43.md b/docSite/content/docs/installation/upgrading/43.md index 3294c9e87..6ea4a923c 100644 --- a/docSite/content/docs/installation/upgrading/43.md +++ b/docSite/content/docs/installation/upgrading/43.md @@ -14,3 +14,11 @@ weight: 996 1. https://xxxxx/api/admin/initv43 会给 PG 数据库的 modeldata 表插入一个新列 file_id,用于存储文件 ID。 + +## 增加环境变量 + +增加一个 `FILE_TOKEN_KEY` 环境变量,用于生成文件预览链接,过期时间为 30 分钟。 + +``` +FILE_TOKEN_KEY=filetokenkey +```