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: propagate user attachments to agent query in AgentQA
wizardchen576671e64a6c
diff --git a/internal/application/service/session_agent_qa.go b/internal/application/service/session_agent_qa.goindex 4e8592aa5..6bdbf4f37 100644--- a/internal/application/service/session_agent_qa.go+++ b/internal/application/service/session_agent_qa.go@@ -184,6 +184,13 @@ func (s *sessionService) AgentQA(if req.QuotedContext != "" {agentQuery += "\n\n" + req.QuotedContext}+ // Inject attachment content (documents, audio transcripts, etc.) so the agent+ // can see uploaded files. Mirrors the behavior of the KnowledgeQA pipeline+ // (see chat_pipeline/into_chat_message.go).+ if len(req.Attachments) > 0 {+ agentQuery += req.Attachments.BuildPrompt()+ logger.Infof(ctx, "Appended %d attachment(s) to agent query", len(req.Attachments))+ }// Execute agent with streaming (asynchronously)// Events will be emitted to EventBus and handled by the Handler layer