ソースを参照

Fix: python_api_reference.md update dataset bug (#6527)

### What problem does this PR solve?

There is a small bug in the update dataset of this document. The return
type of rag_oobject.list_datasets is a list type, and the first item
should be taken as' ragflow_stdk.modules.dataset ' DataSet`, Adapt to
the update.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.18.0
zstar 7ヶ月前
コミット
cc5f4a5efa
コミッターのメールアドレスに関連付けられたアカウントが存在しません
1個のファイルの変更1行の追加0行の削除
  1. 1
    0
      docs/references/python_api_reference.md

+ 1
- 0
docs/references/python_api_reference.md ファイルの表示



rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380") rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
dataset = rag_object.list_datasets(name="kb_name") dataset = rag_object.list_datasets(name="kb_name")
dataset = dataset[0]
dataset.update({"embedding_model":"BAAI/bge-zh-v1.5", "chunk_method":"manual"}) dataset.update({"embedding_model":"BAAI/bge-zh-v1.5", "chunk_method":"manual"})
``` ```



読み込み中…
キャンセル
保存