RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
Feature: Support set chats kbs to empty (#9038)
Stephen Hubcaac061ac0d
diff --git a/api/apps/sdk/chat.py b/api/apps/sdk/chat.pyindex 3667dab548..23231bc529 100644--- a/api/apps/sdk/chat.py+++ b/api/apps/sdk/chat.py@@ -166,7 +166,7 @@ def update(tenant_id, chat_id):kbs = KnowledgebaseService.get_by_ids(ids)embd_ids = [TenantLLMService.split_model_name_and_factory(kb.embd_id)[0] for kb in kbs] # remove vendor suffix for comparisonembd_count = list(set(embd_ids))- if len(embd_count) != 1:+ if len(embd_count) > 1:return get_result(message='Datasets use different embedding models."', code=settings.RetCode.AUTHENTICATION_ERROR)req["kb_ids"] = idsllm = req.get("llm")