feat: implement reparse functionality with process configuration support
- Enhanced the `reparseKnowledge` function to accept optional process configuration overrides, allowing users to adjust parsing settings during reparse operations. - Updated the frontend components to integrate reparse capabilities, including the `UploadConfirmDialog` and `KnowledgeBase` views, providing a user-friendly interface for confirming reparse actions. - Added new localization strings for reparse confirmation and process configuration details in multiple languages. - Modified the backend API to handle reparse requests with optional configuration, ensuring proper validation and persistence of overrides. - Introduced new types and interfaces to manage reparse-specific data structures in the store, improving type safety and clarity in the codebase.
This commit is contained in:
@@ -251,8 +251,8 @@ export function updateManualKnowledge(
|
||||
return put(`/api/v1/knowledge/manual/${id}`, data);
|
||||
}
|
||||
|
||||
export function reparseKnowledge(id: string) {
|
||||
return post(`/api/v1/knowledge/${id}/reparse`);
|
||||
export function reparseKnowledge(id: string, data?: { process_config?: KnowledgeProcessOverrides }) {
|
||||
return post(`/api/v1/knowledge/${id}/reparse`, data);
|
||||
}
|
||||
|
||||
export function cancelKnowledgeParse(id: string) {
|
||||
|
||||
Reference in New Issue
Block a user