From cc5f4a5efaf64203fdd82a391a91e8932f24b587 Mon Sep 17 00:00:00 2001 From: zstar <65890619+zstar1003@users.noreply.github.com> Date: Wed, 26 Mar 2025 17:30:09 +0800 Subject: [PATCH] Fix: python_api_reference.md update dataset bug (#6527) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### What problem does this PR solve? There is a small bug in the update dataset of this document. The return type of rag_oobject.list_datasets is a list type, and the first item should be taken as' ragflow_stdk.modules.dataset ' DataSet`, Adapt to the update. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- docs/references/python_api_reference.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/references/python_api_reference.md b/docs/references/python_api_reference.md index d8b077294..11b6307ba 100644 --- a/docs/references/python_api_reference.md +++ b/docs/references/python_api_reference.md @@ -330,6 +330,7 @@ from ragflow_sdk import RAGFlow rag_object = RAGFlow(api_key="", base_url="http://:9380") dataset = rag_object.list_datasets(name="kb_name") +dataset = dataset[0] dataset.update({"embedding_model":"BAAI/bge-zh-v1.5", "chunk_method":"manual"}) ```