infiniflow / ragflow

RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine based on deep document understanding.
https://ragflow.io
Apache License 2.0
22.87k stars 2.24k forks source link

[Question]: use ragflowsdk error #3218

Open lvyoudashuju opened 1 week ago

lvyoudashuju commented 1 week ago

Describe your problem

Currently, the knowledge base ID and document ID can be obtained, but an error is reported when searching. The error message is: Exception: datasets is required. 企业微信截图_17307972468922

Feiue commented 1 week ago

Please update your code to the latest version.

lvyoudashuju commented 1 week ago

It needs to be re- pip install ragflow-sdk==0.13.0?

Feiue commented 1 week ago

Sorry, it's not the SDK version, but the Ragflow version.

lvyoudashuju commented 1 week ago

I have already installed ragflow 13.0 version.

Feiue commented 1 week ago

I have already investigated the cause of this issue and found that it was due to some problems in the SDK version 0.13. This bug was previously fixed, but it might have been resolved only after the release, which led to this issue. The new code has already been submitted, so you can either wait a bit or choose to modify the package causing the error. "datasets": dataset_ids to "dataset_ids": dataset_ids

lvyoudashuju commented 1 week ago

it's OK.I have already changed "datasets": dataset_ids to "dataset_ids": dataset_ids in the ragflow.py。thanks!