fix:change docs url (#5307)

This commit is contained in:
dreamer6680
2025-07-24 13:00:27 +08:00
committed by GitHub
parent 8e61029505
commit fa60f546d4
80 changed files with 285 additions and 94 deletions

View File

@@ -0,0 +1,8 @@
---
title: 知识库
description: FastGPT 知识库
---
import { Redirect } from '@/components/docs/Redirect';
<Redirect to="/docs/introduction/guide/knowledge_base/RAG" />

View File

@@ -10,7 +10,7 @@ import { Alert } from '@/components/docs/Alert';
## 统一的接口规范
为了实现对不同文档库的统一接入FastGPT 对第三方文档库进行了接口的规范,共包含 4 个接口内容,可以[查看 API 文件库接口](/docs/guide/knowledge_base/api_dataset)。
为了实现对不同文档库的统一接入FastGPT 对第三方文档库进行了接口的规范,共包含 4 个接口内容,可以[查看 API 文件库接口](/docs/introduction/guide/knowledge_base/api_dataset)。
所有内置的文档库,都是基于标准的 API 文件库进行扩展。可以参考`FastGPT/packages/service/core/dataset/apiDataset/yuqueDataset/api.ts`中的代码,进行其他文档库的扩展。一共需要完成 4 个接口开发:
@@ -37,7 +37,7 @@ export type YuqueServer = {
<Alert icon="🤖" context="success">
如果文档库有`根目录`选择的功能,需要设置添加一个字段`basePath`[点击查看`根目录`功能](/docs/guide/knowledge_base/third_dataset/#添加配置表单)
如果文档库有`根目录`选择的功能,需要设置添加一个字段`basePath`[点击查看`根目录`功能](/docs/introduction/guide/knowledge_base/third_dataset/#添加配置表单)
</Alert>