fix: 修复知识库失败批次继续与重分块

- 统一继续和重试逻辑,恢复全部失败明细

- 向量化失败时废弃旧快照并重新分块

- 增加 BGE-M3 分块硬上限与索引写入结果校验
This commit is contained in:
2026-08-07 12:39:27 +08:00
parent 7082041e6e
commit 7a64cfcaa4
9 changed files with 539 additions and 238 deletions

View File

@@ -15,7 +15,6 @@ interface BatchStatus {
pendingCount: number;
processingCount: number;
progressPercent: number;
retryableFailedCount?: number;
skippedCount: number;
status:
| 'CANCELLED'
@@ -53,8 +52,7 @@ const canContinue = computed(
props.manageable &&
(batch.value?.status === 'INTERRUPTED' ||
batch.value?.status === 'PARTIAL_SUCCEEDED') &&
(Number(batch.value?.retryableFailedCount || 0) > 0 ||
Number(batch.value?.failedCount || 0) > 0),
Number(batch.value?.failedCount || 0) > 0,
);
const processedCount = computed(