feat(knowledgeBase): add media file validation and PDF enhancement method selection
- Add i18n translations for file size and duration validation errors in English and Chinese - Implement media file validation with 256MB size limit and 150-second duration limit - Add support for audio and video file formats (mp3, mp4, mov, wav) in dataset creation - Add checkMediaDuration helper function to validate media file duration using HTML5 media API - Add PDF enhancement method selection dropdown with options (DeepDoc, MinerU, TextLN) - Change default PDF enhancement setting from disabled to enabled - Update file type array to include media formats - Add error messaging for file size and duration validation failures - Improve UI spacing for file parsing settings section
This commit is contained in:
@@ -239,6 +239,11 @@ export const zh = {
|
||||
qaMode: '问答模式',
|
||||
fileParsingSettings: '文件解析设置',
|
||||
pdfEnhancementAnalysis: 'PDF增强解析',
|
||||
fileSizeExceeds: '文件大小超过限制',
|
||||
sizeLimitError: '文件大小超过限制,最大支持256MB,当前文件大小',
|
||||
fileDurationExceeds:'文件时长超过限制',
|
||||
fileDurationLimitError: '媒体文件时长超过限制,最大支持150秒,当前时长',
|
||||
unableReadFile:'无法读取媒体文件信息,请检查文件格式',
|
||||
createForm: {
|
||||
name: '名称',
|
||||
embedding_id: '嵌入模型',
|
||||
|
||||
Reference in New Issue
Block a user