ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Question]: use ragflowsdk error

Open lvyoudashuju opened this issue 1 year ago • 6 comments

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

lvyoudashuju avatar Nov 05 '24 09:11 lvyoudashuju

Please update your code to the latest version.

Feiue avatar Nov 06 '24 02:11 Feiue

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

lvyoudashuju avatar Nov 06 '24 03:11 lvyoudashuju

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

Feiue avatar Nov 06 '24 03:11 Feiue

I have already installed ragflow 13.0 version.

lvyoudashuju avatar Nov 06 '24 03:11 lvyoudashuju

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

Feiue avatar Nov 06 '24 03:11 Feiue

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

lvyoudashuju avatar Nov 06 '24 05:11 lvyoudashuju