Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.
Go agentagenticaichatbotdsh-pluginembeddingsevaluationgenerative-aigolangknowledge-basellmmulti-tenantollamaopenaiquestion-answeringragrerankingsemantic-searchvector-searchwiki
fix: rewrite query is empty
wizardchen8a2b38da6f40
diff --git a/internal/application/service/chat_pipline/rewrite.go b/internal/application/service/chat_pipline/rewrite.goindex 9c118cbd3..16e69f820 100644--- a/internal/application/service/chat_pipline/rewrite.go+++ b/internal/application/service/chat_pipline/rewrite.go@@ -166,8 +166,10 @@ func (p *PluginRewrite) OnEvent(ctx context.Context,return next()}- // Update rewritten query- chatManage.RewriteQuery = response.Content+ if response.Content != "" {+ // Update rewritten query+ chatManage.RewriteQuery = response.Content+ }logger.GetLogger(ctx).Infof("Rewritten query, session_id: %s, rewrite_query: %s",chatManage.SessionID, chatManage.RewriteQuery)return next()