feat: add reparse functionality for knowledge documents
- Introduced a new API function `reparseKnowledge` to trigger the re-parsing of knowledge documents. - Updated the KnowledgeBase component to include a user interface option for document re-parsing, with confirmation prompts and status messages. - Added corresponding translations for the reparse feature in both English and Chinese locales. These changes enhance the document management capabilities by allowing users to rebuild knowledge documents, improving the overall user experience.
This commit is contained in:
@@ -98,6 +98,10 @@ export function updateManualKnowledge(id: string, data: { title: string; content
|
||||
return put(`/api/v1/knowledge/manual/${id}`, data);
|
||||
}
|
||||
|
||||
export function reparseKnowledge(id: string) {
|
||||
return post(`/api/v1/knowledge/${id}/reparse`);
|
||||
}
|
||||
|
||||
export function delKnowledgeDetails(id: string) {
|
||||
return del(`/api/v1/knowledge/${id}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user