Skip to content

Commit a266bba

Browse files
authored
doc (#5203)
1 parent 3a5d725 commit a266bba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docSite/content/zh-cn/docs/guide/knowledge_base/third_dataset.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,14 @@ export type YuqueServer = {
4545

4646
### 2. 创建 Hook 文件
4747

48-
每个第三方文档库都会采用 Hook 的方式来实现一套 API 接口的维护,Hook 里包含 5 个函数需要完成。
48+
每个第三方文档库都会采用 Hook 的方式来实现一套 API 接口的维护,Hook 里包含 4 个函数需要完成。
4949

5050
-`FastGPT\packages\service\core\dataset\apiDataset\`下创建一个文档库的文件夹,然后在文件夹下创建一个`api.ts`文件
5151
-`api.ts`文件中,需要完成 5 个函数的定义,分别是:
5252
- `listFiles`:获取文件列表
5353
- `getFileContent`:获取文件内容/文件链接
5454
- `getFileDetail`:获取文件详情信息
5555
- `getFilePreviewUrl`:获取原文预览地址
56-
- `getFileId`: 获取原文件真实Id
5756

5857
### 3. 添加知识库类型
5958

0 commit comments

Comments
 (0)