Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
a266bba5
authored
Jul 11, 2025
by
Archer
Committed by
GitHub
Jul 11, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc (#5203)
parent
3a5d725e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
+1
-2
docSite/content/zh-cn/docs/guide/knowledge_base/third_dataset.md
+1
-2
No files found.
docSite/content/zh-cn/docs/guide/knowledge_base/third_dataset.md
View file @
a266bba5
...
@@ -45,7 +45,7 @@ export type YuqueServer = {
...
@@ -45,7 +45,7 @@ export type YuqueServer = {
### 2. 创建 Hook 文件
### 2. 创建 Hook 文件
每个第三方文档库都会采用 Hook 的方式来实现一套 API 接口的维护,Hook 里包含
5
个函数需要完成。
每个第三方文档库都会采用 Hook 的方式来实现一套 API 接口的维护,Hook 里包含
4
个函数需要完成。
-
在
`FastGPT\packages\service\core\dataset\apiDataset\`下创建一个文档库的文件夹,然后在文件夹下创建一个`
api.ts
`文件
-
在
`FastGPT\packages\service\core\dataset\apiDataset\`下创建一个文档库的文件夹,然后在文件夹下创建一个`
api.ts
`文件
- 在`
api.ts
`文件中,需要完成 5 个函数的定义,分别是:
- 在`
api.ts
`文件中,需要完成 5 个函数的定义,分别是:
...
@@ -53,7 +53,6 @@ export type YuqueServer = {
...
@@ -53,7 +53,6 @@ export type YuqueServer = {
- `
getFileContent
`:获取文件内容/文件链接
- `
getFileContent
`:获取文件内容/文件链接
- `
getFileDetail
`:获取文件详情信息
- `
getFileDetail
`:获取文件详情信息
- `
getFilePreviewUrl
`:获取原文预览地址
- `
getFilePreviewUrl
`:获取原文预览地址
- `
getFileId
`: 获取原文件真实Id
### 3. 添加知识库类型
### 3. 添加知识库类型
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment