Skip to content

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

fix(knowledge): wrap locale code with LanguageLocaleName in wiki ingest prompts

jackson.jiac8645843c37d
diff --git a/internal/application/service/wiki_ingest_batch.go b/internal/application/service/wiki_ingest_batch.go
index a12723e1c..4f1530f86 100644
--- a/internal/application/service/wiki_ingest_batch.go
+++ b/internal/application/service/wiki_ingest_batch.go
@@ -425,7 +425,7 @@ func (s *wikiIngestService) ProcessWikiIngest(ctx context.Context, t *asynq.Task
RetractDocContent: op.DocSummary,
DocTitle: op.DocTitle,
KnowledgeID: op.KnowledgeID,
- Language: op.Language,
+ Language: types.LanguageLocaleName(op.Language),
})
}
mapMu.Unlock()
@@ -770,7 +770,7 @@ func (s *wikiIngestService) mapOneDocument(
) (*docIngestResult, []SlugUpdate, error) {
docStartedAt := time.Now()
knowledgeID := op.KnowledgeID
- lang := op.Language
+ lang := types.LanguageLocaleName(op.Language)
// Open a postprocess.wiki subspan under the parent attempt's
// postprocess stage so the actual per-doc work (LLM extraction +