feat(knowledge): 添加知识库关联智能体功能并优化分段查询接口

- 在知识库详情页面添加关联智能体列表
- 实现相关智能体的查询和展示功能
- 优化分段查询接口,改为 POST 请求
-调整分段搜索输入框样式和功能
- 移除不必要的控制台日志输出
This commit is contained in:
陈昱达
2025-05-21 18:18:53 +08:00
parent 395625fff0
commit e55390c5d9
7 changed files with 64 additions and 65 deletions

View File

@@ -265,8 +265,8 @@ export function uploadFileByTemplate(data) {
export function datasetQuerySegments(data) {
return request({
url: getUrl(`/datasetDocumentEx/querySegments`),
method: 'get',
params: data,
method: 'post',
data,
noLoading: true
})
}
@@ -474,6 +474,15 @@ export function switchStatus(data) {
return request({
url: getUrl(`/datasetDocumentEx/segment/switchStatus`),
method: 'post',
data
data,
noLoading: true
})
}
// 知识库关联智能体
export function relatedApps(data) {
return request({
url: getUrl(`/datasetsEx/relatedApps`),
method: 'get',
params: data
})
}