feat: 百科知识库同步向量接入
This commit is contained in:
@@ -97,6 +97,7 @@ export interface Wiki {
|
||||
// 其他
|
||||
difficulty?: number // 1-5级
|
||||
isHot?: number // 0否 1是
|
||||
isVectorSynced?: number // 0否 1是
|
||||
relatedWikiIds?: string[]
|
||||
relatedWikis?: Wiki[]
|
||||
|
||||
@@ -174,3 +175,13 @@ export function uploadWikiImg(data: { id: string; ossIds: string[] }) {
|
||||
export function deleteWiki(ids: string[]) {
|
||||
return post<{ msg: string }>('/wiki/delete', { ids })
|
||||
}
|
||||
|
||||
// 同步点位到 Qdrant
|
||||
export function syncWikiQdrant(id: string) {
|
||||
return post<{ msg: string }>('/wiki/sync-qdrant', { id })
|
||||
}
|
||||
|
||||
// 从 Qdrant 删除点位
|
||||
export function deleteWikiQdrant(id: string) {
|
||||
return post<{ msg: string }>('/wiki/delete-qdrant', { id })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user