Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

refactor: Update step numbering in wiki_ingest service process

wizardchen3edd7548f4c6
diff --git a/internal/application/service/wiki_ingest.go b/internal/application/service/wiki_ingest.go
index 1fef62796..67fc0d37b 100644
--- a/internal/application/service/wiki_ingest.go
+++ b/internal/application/service/wiki_ingest.go
@@ -423,11 +423,11 @@ func (s *wikiIngestService) ProcessWikiIngest(ctx context.Context, t *asynq.Task
// Step 4: Append to log page
s.appendLogEntry(ctx, payload, "ingest", docTitle, pagesAffected, "")
- // Step 6: Cross-link injection — scan all affected pages and inject [[wiki-links]]
+ // Step 5: Cross-link injection — scan all affected pages and inject [[wiki-links]]
// for mentions of other wiki page titles. Pure text matching, no LLM call.
s.injectCrossLinks(ctx, payload.KnowledgeBaseID, pagesAffected)
- // Step 7: Publish all draft pages created during this ingest
+ // Step 6: Publish all draft pages created during this ingest
s.publishDraftPages(ctx, payload.KnowledgeBaseID, pagesAffected)
// Step 7: Handle stale pages — pages that previously referenced this document