Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

Merge branch 'master' into custom_agent

wizardchendc1ab5b81d65
diff --cc internal/types/interfaces/session.go
index b47d224d4,6c129147d..339f089b3
--- a/internal/types/interfaces/session.go
+++ b/internal/types/interfaces/session.go
@@@ -41,10 -39,11 +41,12 @@@ type SessionService interface
// KnowledgeQAByEvent performs knowledge-based question answering by event
KnowledgeQAByEvent(ctx context.Context, chatManage *types.ChatManage, eventList []types.EventType) error
// SearchKnowledge performs knowledge-based search, without summarization
- SearchKnowledge(ctx context.Context, knowledgeBaseID, query string) ([]*types.SearchResult, error)
+ // knowledgeBaseIDs: list of knowledge base IDs to search (supports multi-KB)
+ // knowledgeIDs: list of specific knowledge (file) IDs to search
+ SearchKnowledge(ctx context.Context, knowledgeBaseIDs []string, knowledgeIDs []string, query string) ([]*types.SearchResult, error)
// AgentQA performs agent-based question answering with conversation history and streaming support
// eventBus is optional - if nil, uses service's default EventBus
+ // customAgent is optional - if provided, uses custom agent configuration instead of tenant defaults
AgentQA(
ctx context.Context,
session *types.Session,