mirror of
https://github.com/Tencent/WeKnora.git
synced 2026-06-04 13:30:32 +08:00
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:
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user