feat(knowledge): 实现知识库上传功能并优化相关页面

- 新增上传到知识库的 API 接口和相关页面组件- 实现分段查看页面功能
- 优化文档详情页面布局和样式
- 调整知识库创建流程,支持直接上传至知识库
This commit is contained in:
陈昱达
2025-04-22 19:49:42 +08:00
parent 5637496340
commit 26e7ccac12
11 changed files with 125 additions and 37 deletions

View File

@@ -286,3 +286,12 @@ export function mdIndex(params) {
back: true
})
}
// 上传到知识库
export function embedding(data) {
return request({
url: getUrl(`/datasetDocumentEx/split/embedding`),
method: 'post',
data
})
}