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(query-understand): fall back to original query on unparsable output
MidoriKurage1d2d623bfd8c
diff --git a/internal/application/service/chat_pipeline/query_understand.go b/internal/application/service/chat_pipeline/query_understand.goindex d234ad706..d25b34343 100644--- a/internal/application/service/chat_pipeline/query_understand.go+++ b/internal/application/service/chat_pipeline/query_understand.go@@ -334,11 +334,7 @@ func (p *PluginQueryUnderstand) parseOutput(chatManage *types.ChatManage, raw streturn}- // If JSON parsing failed entirely, treat the raw text as the rewritten query- // and default to IntentKBSearch for safety.- if content != "" {- chatManage.RewriteQuery = content- }+ // On parse failure, keep the original query and intent.}func parseStructuredQueryOutput(raw string) (queryUnderstandOutput, bool) {