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

- Modified the chat creation component to improve layout and responsiveness by adjusting the dialogue answers section.
- Refined the logic in the KnowledgePostProcessService to conditionally spawn wiki ingest tasks based on wiki configuration settings, enhancing task management.
- Added migration scripts for creating and dropping the `wiki_page_issues` table, facilitating better issue tracking within the wiki system.

These changes enhance the user interface for chat creation and improve the backend processing of knowledge base tasks, contributing to a more efficient and user-friendly experience.
This commit is contained in:
wizardchen
2026-04-19 19:12:47 +08:00
parent 99cc721140
commit 4b3f41812f
4 changed files with 4 additions and 3 deletions

View File

@@ -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;

View File

@@ -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)
}