From 9ce65215827e0cdef9a778b1a8cfd709c2d2f33e Mon Sep 17 00:00:00 2001 From: liwenju0 Date: Wed, 2 Apr 2025 15:52:52 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20Change=20the=20field=20name=20of=20the?= =?UTF-8?q?=20document=20ID=20from=20"documents"=20to=20"do=E2=80=A6=20(#6?= =?UTF-8?q?753)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …cument_ids" to maintain consistency. ### What problem does this PR solve? Close #6752 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) Co-authored-by: wenju.li --- sdk/python/ragflow_sdk/ragflow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/python/ragflow_sdk/ragflow.py b/sdk/python/ragflow_sdk/ragflow.py index a84c3515e..e34b57b0c 100644 --- a/sdk/python/ragflow_sdk/ragflow.py +++ b/sdk/python/ragflow_sdk/ragflow.py @@ -170,7 +170,7 @@ class RAGFlow: "keyword": keyword, "question": question, "dataset_ids": dataset_ids, - "documents": document_ids + "document_ids": document_ids } # Send a POST request to the backend service (using requests library as an example, actual implementation may vary) res = self.post('/retrieval',json=data_json)