Fix Python SDK example error. (#4262)

### What problem does this PR solve?

#4252

### Type of change

- [x] Documentation Update
This commit is contained in:
Kevin Hu 2024-12-27 14:40:00 +08:00 committed by GitHub
parent 146e8bb793
commit 6f6303d017
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -736,8 +736,8 @@ from ragflow_sdk import RAGFlow
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
dataset = rag_object.list_datasets("123")
dataset = dataset[0]
dataset.async_parse_documents(["wdfxb5t547d"])
for chunk in doc.list_chunks(keywords="rag", page=0, page_size=12):
docs = dataset.list_documents(keywords="test", page=1, page_size=12)
for chunk in docs[0].list_chunks(keywords="rag", page=0, page_size=12):
print(chunk)
```