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

…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 <wenju.li@deepctr.cn>
This commit is contained in:
liwenju0 2025-04-02 15:52:52 +08:00 committed by GitHub
parent 160bf4ccb3
commit 9ce6521582
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -170,7 +170,7 @@ class RAGFlow:
"keyword": keyword, "keyword": keyword,
"question": question, "question": question,
"dataset_ids": dataset_ids, "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) # 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) res = self.post('/retrieval',json=data_json)