Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.
Go agentagenticaichatbotdsh-pluginembeddingsevaluationgenerative-aigolangknowledge-basellmmulti-tenantollamaopenaiquestion-answeringragrerankingsemantic-searchvector-searchwiki
fix: switch to append mode on retry to prevent data loss
wizardchene55cbaa057e8
diff --git a/internal/application/service/knowledge.go b/internal/application/service/knowledge.goindex 0c8a97b3e..449562fb3 100644--- a/internal/application/service/knowledge.go+++ b/internal/application/service/knowledge.go@@ -6765,17 +6765,6 @@ func (s *knowledgeService) finalizeFAQValidation(ctx context.Context, payload *tlogger.Infof(ctx, "Deleted FAQ entries file from object storage: %s", payload.EntriesURL)}}-- // 更新最终状态- progress.Status = types.FAQImportStatusCompleted- progress.Progress = 100- progress.Processed = originalTotalEntries- progress.SuccessCount = originalTotalEntries - progress.FailedCount- if payload.DryRun {- progress.Message = fmt.Sprintf("验证完成: 成功 %d 条, 失败 %d 条", progress.SuccessCount, progress.FailedCount)- } else {- progress.Message = fmt.Sprintf("导入完成: 成功 %d 条, 失败 %d 条", progress.SuccessCount, progress.FailedCount)- }progress.UpdatedAt = time.Now().Unix()// 如果有失败条目,生成 CSV 文件