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:
wizardchen
2026-06-09 20:34:16 +08:00
committed by lyingbug
parent d8a26f7c23
commit 2aadd61fcc
14 changed files with 371 additions and 23 deletions
+21
View File
@@ -668,12 +668,33 @@ export default {
overviewDescManual: 'После подтверждения настроек документ будет опубликован и проиндексирован',
confirmUrl: 'Импортировать и обработать',
confirmManual: 'Опубликовать и обработать',
titleReparse: 'Подтверждение повторной обработки',
overviewDescReparse: 'После подтверждения настроек существующее содержимое будет удалено, а документ обработан заново',
confirmReparse: 'Подтвердить и обработать заново',
reparseSource: 'Документ для повторной обработки',
reparseHint: 'Используются настройки прошлой обработки; их можно изменить здесь',
urlSource: 'Источник импорта',
manualSource: 'Документ для публикации',
editUrl: 'Изменить URL',
manualCharCount: '{count} символов',
},
knowledgeStages: {
processConfig: {
title: 'Конфигурация обработки',
kbDefault: 'Используются настройки базы знаний по умолчанию',
chunking: 'Разбиение',
chunkSize: 'размер {n}',
parentChildOn: 'родитель-потомок вкл',
parentChildOff: 'родитель-потомок выкл',
parser: 'Движок парсера',
multimodal: 'Мультимодальность',
asr: 'Аудио (ASR)',
question: 'Генерация вопросов',
questionOn: 'вкл ({n} на фрагмент)',
graph: 'Граф знаний',
on: 'вкл',
off: 'выкл',
},
title: 'Конвейер обработки',
root: 'Обработка знаний',
attempt: 'Попытка {n}',