Skip to content

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

Fix the bug that prevented modifying `dataset_ids` (#3784)

liuhua3ee9ca749d7a
diff --git a/api/apps/sdk/chat.py b/api/apps/sdk/chat.py
index aa717a875e..0f7509aac3 100644
--- a/api/apps/sdk/chat.py
+++ b/api/apps/sdk/chat.py
@@ -161,7 +161,7 @@ def update(tenant_id,chat_id):
return get_error_data_result("`datasets` can't be empty")
if ids:
for kb_id in ids:
- kbs = KnowledgebaseService.accessible(kb_id=chat_id, user_id=tenant_id)
+ kbs = KnowledgebaseService.accessible(kb_id=kb_id, user_id=tenant_id)
if not kbs:
return get_error_data_result(f"You don't own the dataset {kb_id}")
kbs = KnowledgebaseService.query(id=kb_id)