We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a5d725 commit a266bbaCopy full SHA for a266bba
docSite/content/zh-cn/docs/guide/knowledge_base/third_dataset.md
@@ -45,15 +45,14 @@ export type YuqueServer = {
45
46
### 2. 创建 Hook 文件
47
48
-每个第三方文档库都会采用 Hook 的方式来实现一套 API 接口的维护,Hook 里包含 5 个函数需要完成。
+每个第三方文档库都会采用 Hook 的方式来实现一套 API 接口的维护,Hook 里包含 4 个函数需要完成。
49
50
- 在`FastGPT\packages\service\core\dataset\apiDataset\`下创建一个文档库的文件夹,然后在文件夹下创建一个`api.ts`文件
51
- 在`api.ts`文件中,需要完成 5 个函数的定义,分别是:
52
- `listFiles`:获取文件列表
53
- `getFileContent`:获取文件内容/文件链接
54
- `getFileDetail`:获取文件详情信息
55
- `getFilePreviewUrl`:获取原文预览地址
56
- - `getFileId`: 获取原文件真实Id
57
58
### 3. 添加知识库类型
59
0 commit comments