feat: 完善知识库批量导入与公共 API

- 新增批量异步导入、状态查询、失败重试与中断恢复链路

- 拆分知识库读取、导入、维护权限并完善 Public API 契约

- 补充数据库迁移、管理端交互、接口说明与相关测试
This commit is contained in:
2026-08-03 11:13:48 +08:00
parent 6df3dd9981
commit 51dbfd41b6
99 changed files with 16274 additions and 480 deletions

View File

@@ -78,6 +78,50 @@
"fileName": "File Name",
"progressUpload": "Progress of file upload",
"fileSize": "File size",
"batchUploadTitle": "Select files or drop them here",
"batchUploadDescription": "TXT, PDF, DOCX, MD, PPTX and XLSX. Up to 100MB per file and 1GB per folder.",
"batchUploadTip": "When upload completes, choose manual or automatic import.",
"selectFolder": "Select Folder",
"manualImport": "Manual Import",
"autoImport": "Auto Import",
"autoImportTip": "Automatically parse, chunk, vectorize and store every document.",
"manualImportStarted": "Documents are parsing and will be ready for manual chunking",
"autoImportStarted": "Automatic import started",
"uploadCompleteFirst": "Wait for every file to finish uploading",
"uploaded": "Uploaded",
"uploading": "Uploading",
"retryUpload": "Retry Upload",
"retry": "Retry",
"singleFileLimit": "Each file must be no larger than 100MB",
"folderSizeLimit": "The folder must be no larger than 1GB",
"fileCountLimit": "A batch can contain up to 2000 files",
"noSupportedFiles": "No supported documents found",
"unsupportedSkipped": "Unsupported files were skipped",
"createBatchFailed": "Failed to create upload batch",
"cancelBatchFailed": "Failed to cancel the upload batch. Please retry.",
"uploadFailed": "Upload failed. Please retry.",
"duplicatePolicy": "Duplicates",
"skipDuplicates": "Skip",
"overwriteDuplicates": "Replace",
"reimportDuplicates": "Reimport",
"batchStatus": "Automatic import status",
"batchRunning": "Running",
"batchInterrupted": "Interrupted",
"batchPartial": "Partially failed",
"batchFailed": "Import failed",
"batchCompleted": "Completed",
"completedCount": "Completed",
"processingCount": "Processing",
"failedCount": "Failed",
"pendingCount": "Pending",
"skippedCount": "Skipped",
"continueBatch": "Continue",
"splitOrIndexFailed": "Chunking or indexing failed. Please retry.",
"documentSourceUnavailable": "Unable to read the document file. Please contact the administrator.",
"parseServiceUnavailable": "The document parsing service is temporarily unavailable. Please retry later.",
"parseServiceTimeout": "The document parsing service timed out. Please retry later.",
"taskPendingTimeout": "The task waited too long in the queue. Please retry.",
"taskExecutionInterrupted": "The task was interrupted. Please retry.",
"uploadCreateTip": "After upload, the document appears in the list first and is parsed asynchronously. Continue with chunking after parsing finishes.",
"analysisTip": "The system analyzes multilingual structure first and recommends a splitting strategy. You can still adjust each file manually.",
"manualStrategyTip": "The preview refreshes automatically when the chunking strategy changes. Start indexing after it looks right.",
@@ -134,6 +178,8 @@
"PARSING": "Parsing",
"PARSE_FAILED": "Parse Failed",
"READY_FOR_SEGMENT": "Ready for Chunking",
"SPLITTING": "Chunking",
"SPLIT_FAILED": "Chunking Failed",
"READY_FOR_INDEX": "Ready for Indexing",
"INDEXING": "Indexing",
"INDEX_FAILED": "Index Failed",