mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-13 22:56:28 +00:00

* add new doc (#5175) Co-authored-by: dreamer6680 <146868355@qq.com> * Test docs (#5235) * fix: change the page of doc * chore: add new dependencies, update global styles/layout, optimize docs, add Feishu & GitHub icons, update API examples * fix: docs/index 404 not found * Update environment variable names, optimize styles, add new API routes, fix component styles, adjust documentation, and update GitHub and Feishu icons * update readme * feat: add a linkfastgpt compontent * feat: update new doc * fix:remove unuse page and redirect homepage to docs (#5288) * fix:remove some unuse doc * fix: redirect homepage to doc * git ignore * fix:navbar to index (#5295) * sidbar * fix: navtab unlight (#5298) * doc --------- Co-authored-by: dreamer6680 <1468683855@qq.com> Co-authored-by: dreamer6680 <146868355@qq.com>
36 lines
1.8 KiB
Plaintext
36 lines
1.8 KiB
Plaintext
---
|
||
title: 外部文件知识库
|
||
description: FastGPT 外部文件知识库功能介绍和使用方式
|
||
---
|
||
|
||
外部文件库是 FastGPT 商业版特有功能。它允许接入你现在的文件系统,无需将文件再导入一份到 FastGPT 中。
|
||
|
||
并且,阅读权限可以通过你的文件系统进行控制。
|
||
|
||
| | | |
|
||
| --------------------- | --------------------- | --------------------- |
|
||
|  |  |  |
|
||
|
||
|
||
## 导入参数说明
|
||
|
||
- 外部预览地址:用于跳转你的文件阅读地址,会携带“文件阅读ID”进行访问。
|
||
- 文件访问URL:文件可访问的地址。
|
||
- 文件阅读ID:通常情况下,文件访问URL是临时的。如果希望永久可以访问,你需要使用该文件阅读ID,并配合上“外部预览地址”,跳转至新的阅读地址进行原文件访问。
|
||
- 文件名:默认会自动解析文件访问URL上的文件名。如果你手动填写,将会以手动填写的值为准。
|
||
|
||
[点击查看API导入文档](/docs/development/openapi/dataset/#创建一个外部文件库集合商业版)
|
||
|
||
## API 文件库替代方案
|
||
|
||
4.8.15 提供了新的知识库类型 - API 文件库,对外部文件知识库做了进一步的拓展
|
||
|
||
通过对接口进行简单的调整,就能使用 API 文件库代替外部文件知识库的功能
|
||
|
||
你可以直接将外部文件知识库中的外部预览地址,作为 API 文件库接口规范中获取文件阅读链接的接口返回
|
||
|
||
然后再以相同的 baseURL 实现获取文件列表和获取单个文件内容这两个接口
|
||
|
||
这样就能轻松地使用 API 文件库替代原有的外部文件知识库,更多详细的内容见 API 文件库的文档
|
||
|