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
Fix: dataset_ids parameter (#5864)
Raghav Patidar6f9cd96ec563
diff --git a/api/apps/sdk/chat.py b/api/apps/sdk/chat.pyindex bfeba2b0f1..32b30341cc 100644--- a/api/apps/sdk/chat.py+++ b/api/apps/sdk/chat.py@@ -31,7 +31,7 @@ from api.utils.api_utils import get_result@token_requireddef create(tenant_id):req = request.json- ids = [i for i in req.get("dataset_ids", []) if i]+ ids = [i for i in req.get("dataset_ids", []) if i]for kb_id in ids:kbs = KnowledgebaseService.accessible(kb_id=kb_id, user_id=tenant_id)if not kbs:diff --git a/sdk/python/ragflow_sdk/ragflow.py b/sdk/python/ragflow_sdk/ragflow.pyindex c0da192cca..a84c3515e9 100644--- a/sdk/python/ragflow_sdk/ragflow.py+++ b/sdk/python/ragflow_sdk/ragflow.py@@ -129,7 +129,7 @@ class RAGFlow:temp_dict = {"name": name,"avatar": avatar,- "dataset_ids": dataset_list,+ "dataset_ids": dataset_list if dataset_list else [],"llm": llm.to_json(),"prompt": prompt.to_json()}res = self.post("/chats", temp_dict)