feat: Add quick actions for document management in knowledge base

- Introduced a new section for quick actions in the menu, allowing users to upload documents and create FAQs directly from the interface.
- Implemented file upload functionality with validation and error handling.
- Enhanced localization for new quick action strings in English, Russian, and Chinese.
- Updated the UI to improve user experience when interacting with knowledge base actions.
This commit is contained in:
wizardchen
2025-11-20 10:33:10 +08:00
parent 601f73ec5f
commit b2b97ac3a3
5 changed files with 234 additions and 116 deletions
+2
View File
@@ -48,11 +48,13 @@ export default {
upload: 'Загрузить файл',
uploadSuccess: 'Файл успешно загружен!',
uploadFailed: 'Ошибка загрузки файла!',
docActionUnsupported: 'Этот тип базы знаний не поддерживает данную операцию',
fileExists: 'Файл уже существует',
notInitialized: 'База знаний не инициализирована. Пожалуйста, настройте модели в разделе настроек перед загрузкой файлов',
getInfoFailed: 'Не удалось получить информацию о базе знаний, загрузка файла невозможна',
missingId: 'Отсутствует ID базы знаний',
deleteFailed: 'Не удалось удалить. Пожалуйста, попробуйте позже!',
quickActions: 'Быстрые действия',
createKnowledgeBase: 'Создать базу знаний',
knowledgeBaseName: 'Название базы знаний',
enterName: 'Введите название базы знаний',