feat(knowledge): add batch reparse capability

This commit introduces the Batch Reparse feature for the Knowledge Base.
Users can now select multiple documents and trigger a re-parsing pipeline in batches, streamlining the recovery from parse failures.
This commit is contained in:
jw_mac
2026-06-25 21:03:11 +08:00
committed by lyingbug
parent 5f2ca6c975
commit a14c1d87aa
5 changed files with 168 additions and 5 deletions
+9 -1
View File
@@ -120,7 +120,7 @@ export function updateKnowledgeBase(id: string, data: {
};
}
}) {
return put(`/api/v1/knowledge-bases/${id}` , data);
return put(`/api/v1/knowledge-bases/${id}`, data);
}
export function rebuildKBIndex(kbId: string) {
@@ -481,3 +481,11 @@ export function knowledgeSemanticSearch(data: {
}) {
return post('/api/v1/knowledge-search', data);
}
export function batchReparseKnowledge(kbId: string, ids: string[], processConfig?: any) {
return post(`/api/v1/knowledge/batch-reparse`, {
kb_id: kbId,
ids,
process_config: processConfig
});
}