Skip to content

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

feat: Update chat creation UI and enhance knowledge post-processing logic

wizardchen4b3f41812fca
diff --git a/frontend/src/views/creatChat/creatChat.vue b/frontend/src/views/creatChat/creatChat.vue
index 60eb39120..eb36c8e4c 100644
--- a/frontend/src/views/creatChat/creatChat.vue
+++ b/frontend/src/views/creatChat/creatChat.vue
@@ -243,10 +243,11 @@ const handleKBEditorSuccess = (kbId: string) => {
}
.dialogue-answers {
- position: absolute;
display: flex;
flex-flow: column;
align-items: center;
+ width: 100%;
+ max-width: 800px;
:deep(.answers-input) {
position: static;
diff --git a/internal/application/service/knowledge_post_process.go b/internal/application/service/knowledge_post_process.go
index 5dfa0e69e..c83da667c 100644
--- a/internal/application/service/knowledge_post_process.go
+++ b/internal/application/service/knowledge_post_process.go
@@ -119,8 +119,8 @@ func (s *KnowledgePostProcessService) Handle(ctx context.Context, task *asynq.Ta
}
}
- // 6. Spawn Wiki Ingest Task for wiki-type knowledge bases
- if kb.Type == types.KnowledgeBaseTypeWiki && len(textChunks) > 0 {
+ // 6. Spawn Wiki Ingest Task if wiki is enabled and auto ingest is enabled
+ if kb.IsWikiEnabled() && kb.WikiConfig.AutoIngest && len(textChunks) > 0 {
EnqueueWikiIngest(ctx, s.taskEnqueuer, s.redisClient, payload.TenantID, payload.KnowledgeBaseID, payload.KnowledgeID)
logger.Infof(ctx, "[KnowledgePostProcess] Enqueued wiki ingest task for %s", payload.KnowledgeID)
}
diff --git a/migrations/versioned/000033_wiki_page_issues.down.sql b/migrations/versioned/000037_wiki_page_issues.down.sql
similarity index 100%
rename from migrations/versioned/000033_wiki_page_issues.down.sql
rename to migrations/versioned/000037_wiki_page_issues.down.sql
diff --git a/migrations/versioned/000033_wiki_page_issues.up.sql b/migrations/versioned/000037_wiki_page_issues.up.sql
similarity index 100%
rename from migrations/versioned/000033_wiki_page_issues.up.sql
rename to migrations/versioned/000037_wiki_page_issues.up.sql