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:
wizardchen
2026-03-04 21:04:13 +08:00
committed by lyingbug
parent 76a5b329f3
commit 5ae076e22c
4 changed files with 46 additions and 0 deletions
+4
View File
@@ -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}`);
}