Skip to content

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

Fix: Change the field name of the document ID from "documents" to "do… (#6753)

liwenju09ce65215827e
diff --git a/sdk/python/ragflow_sdk/ragflow.py b/sdk/python/ragflow_sdk/ragflow.py
index a84c3515e9..e34b57b0cb 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)