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:
@@ -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
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user