feat(i18n): add optional embedding model descriptions for multiple locales

Enhance the internationalization support by adding optional descriptions for the embedding model in English, Korean, Russian, and Chinese. Update the UI to reflect these changes, ensuring users are informed about the optional nature of the embedding model when configuring knowledge base settings.
This commit is contained in:
wizardchen
2026-06-16 21:07:28 +08:00
committed by lyingbug
parent 07e0f6f21a
commit 83eeec0ddf
10 changed files with 41 additions and 112 deletions
@@ -132,7 +132,10 @@ func (s *wikiIngestService) selectRelevantFolders(
}
}
if !kb.NeedsEmbeddingModel() || strings.TrimSpace(kb.EmbeddingModelID) == "" || len(deeper) == 0 {
// Gate purely on whether an embedding model is configured — NOT on
// NeedsEmbeddingModel(), which is false for wiki-only KBs that may still
// opt into an embedding model purely for directory/taxonomy similarity.
if strings.TrimSpace(kb.EmbeddingModelID) == "" || len(deeper) == 0 {
return capFolders(pool, wikiTaxonomyPromptMaxPaths)
}