feat: 重构知识库文档导入任务化流程

- 新增上传建单、异步解析、分块处理与异步向量化闭环

- 收口分享页权限、完成态检索过滤与 SSE 局部状态刷新
This commit is contained in:
2026-04-15 19:27:22 +08:00
parent a41b50959e
commit 2689adfa40
56 changed files with 6376 additions and 1060 deletions

View File

@@ -48,5 +48,9 @@
"more": "Mode",
"submitDeleteApproval": "Submit Delete Approval",
"submitPublishApproval": "Submit Publish Approval",
"viewSegmentation": "ViewSegmentation"
"viewSegmentation": "View Segments",
"continueProcess": "Continue",
"startIndex": "Start Indexing",
"retryParse": "Retry Parse",
"retryIndex": "Retry Index"
}

View File

@@ -32,9 +32,10 @@
"rerankLlmId": "RerankLlm",
"searchEngineEnable": "SearchEngineEnable",
"englishName": "EnglishName",
"documentType": "DocumentType",
"fileName": "fileName",
"knowledgeCount": "Number of knowledge items",
"chunkCount": "Chunks",
"processStatus": "Status",
"progress": "Progress",
"publishStatusDraft": "Draft",
"publishStatusPublishPending": "Publish Pending",
"publishStatusPublished": "Published",
@@ -77,17 +78,32 @@
"fileName": "File Name",
"progressUpload": "Progress of file upload",
"fileSize": "File size",
"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.",
"confidence": "Confidence",
"recommendReason": "Reasons",
"candidateStrategies": "Candidates",
"strategySelection": "Strategy",
"previewTip": "The preview result is the final import basis. Confirm it before committing.",
"previewPaneTitle": "Chunk Preview",
"previewEmpty": "No preview data",
"previewReady": "Preview ready",
"previewRefreshing": "Refreshing preview",
"previewRequestFailed": "Failed to refresh preview. Please try again.",
"warningCount": "Warnings",
"chunkCount": "Chunks",
"lockedState": "Locked",
"normalizedDocumentTitle": "Source Text",
"normalizedDocumentTip": "Shows the normalized source text so each chunk can be checked in context.",
"resultEmpty": "No import result",
"importFailed": "Import failed"
"importFailed": "Import failed",
"createSuccess": "Documents added to the list",
"partialCreateSuccess": "Only some documents were added successfully",
"indexQueued": "Indexing started",
"previewAction": "Generate Preview",
"workbenchEyebrow": "Processing Workspace",
"workbenchTitle": "Document Processing"
},
"splitterDoc": {
"fileType": "FileType",
@@ -113,6 +129,16 @@
"uploading": "Parsing in progress",
"importSuccess": "ImportSuccess"
},
"taskStatus": {
"UPLOADED": "Uploaded",
"PARSING": "Parsing",
"PARSE_FAILED": "Parse Failed",
"READY_FOR_SEGMENT": "Ready for Chunking",
"READY_FOR_INDEX": "Ready for Indexing",
"INDEXING": "Indexing",
"INDEX_FAILED": "Index Failed",
"COMPLETED": "Completed"
},
"documentManagement": "Document management",
"actions": {
"knowledge": "Knowledge",
@@ -188,5 +214,6 @@
"vectorEmbedModelTips": "After successful vector data, it is not allowed to modify the vector model",
"dimensionOfVectorModelTips": "After successful vector data, it is not allowed to modify the dimensions of the vector model",
"dimensionOfVectorModel": "Dimension of vector model",
"managePermissionHint": "Only the creator or super admin can modify this knowledge base"
"managePermissionHint": "Only the creator or super admin can modify this knowledge base",
"processingDeleteBlocked": "Documents in progress cannot be deleted"
}

View File

@@ -48,5 +48,9 @@
"more": "更多",
"submitDeleteApproval": "提交删除审批",
"submitPublishApproval": "提交发布审批",
"viewSegmentation": "查看分段"
"viewSegmentation": "查看分段",
"continueProcess": "继续处理",
"startIndex": "开始向量化",
"retryParse": "重试解析",
"retryIndex": "重试向量化"
}

View File

@@ -32,9 +32,10 @@
"rerankLlmId": "重排模型",
"searchEngineEnable": "是否启用搜索引擎",
"englishName": "英文名称",
"documentType": "文件类型",
"fileName": "文件名",
"knowledgeCount": "知识条数",
"chunkCount": "分块数",
"processStatus": "处理状态",
"progress": "处理进度",
"publishStatusDraft": "草稿",
"publishStatusPublishPending": "发布审批中",
"publishStatusPublished": "已发布",
@@ -77,17 +78,32 @@
"fileName": "文件名称",
"progressUpload": "文件上传进度",
"fileSize": "文件大小",
"uploadCreateTip": "上传完成后,文档会先进入列表并异步解析,解析完成后再继续分块和向量化。",
"analysisTip": "系统会先基于文档结构做中英文规则分析,再推荐拆分策略,你也可以逐个文件手动调整。",
"manualStrategyTip": "调整分块策略后会自动刷新预览,确认效果后再启动向量化。",
"confidence": "置信度",
"recommendReason": "推荐理由",
"candidateStrategies": "备选策略",
"strategySelection": "拆分策略",
"previewTip": "预览结果就是最终入库依据,确认无误后再执行导入。",
"previewPaneTitle": "分块预览",
"previewEmpty": "暂无可预览内容",
"previewReady": "预览已更新",
"previewRefreshing": "正在更新预览",
"previewRequestFailed": "预览生成失败,请稍后重试",
"warningCount": "警告数",
"chunkCount": "分块数",
"lockedState": "已锁定",
"normalizedDocumentTitle": "原文",
"normalizedDocumentTip": "展示解析后的标准化文本,便于核对每个分块落点。",
"resultEmpty": "暂无导入结果",
"importFailed": "导入失败"
"importFailed": "导入失败",
"createSuccess": "文档已加入列表",
"partialCreateSuccess": "已加入部分文档,请检查失败项",
"indexQueued": "已开始向量化",
"previewAction": "生成预览",
"workbenchEyebrow": "处理工作台",
"workbenchTitle": "文档处理"
},
"splitterDoc": {
"fileType": "文件类型",
@@ -113,6 +129,16 @@
"uploading": "解析中",
"importSuccess": "导入成功"
},
"taskStatus": {
"UPLOADED": "已上传",
"PARSING": "解析中",
"PARSE_FAILED": "解析失败",
"READY_FOR_SEGMENT": "待分块",
"READY_FOR_INDEX": "待向量化",
"INDEXING": "向量化中",
"INDEX_FAILED": "向量化失败",
"COMPLETED": "已完成"
},
"documentManagement": "文档管理",
"actions": {
"knowledge": "知识",
@@ -188,5 +214,6 @@
"vectorEmbedModelTips": "成功向量数据之后不允许修改向量模型",
"dimensionOfVectorModelTips": "成功向量数据之后不允许修改向量模型维度",
"dimensionOfVectorModel": "向量模型维度",
"managePermissionHint": "仅创建者或超级管理员可修改当前知识库"
"managePermissionHint": "仅创建者或超级管理员可修改当前知识库",
"processingDeleteBlocked": "文档处理中,暂不允许删除"
}