Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fixed the bug that passing an empty array will not update (#10755)

jiasuc5ac57167629
diff --git a/api/apps/sdk/chat.py b/api/apps/sdk/chat.py
index 263375e77c..44cf2f5337 100644
--- a/api/apps/sdk/chat.py
+++ b/api/apps/sdk/chat.py
@@ -169,6 +169,8 @@ def update(tenant_id, chat_id):
if len(embd_count) > 1:
return get_result(message='Datasets use different embedding models."', code=settings.RetCode.AUTHENTICATION_ERROR)
req["kb_ids"] = ids
+ else:
+ req["kb_ids"] = []
llm = req.get("llm")
if llm:
if "model_name" in llm: