This website requires JavaScript.
Explore
Help
Register
Sign In
yujunjun
/
ragflow
Watch
1
Star
0
Fork
0
You've already forked ragflow
mirror of
https://github.com/infiniflow/ragflow.git
synced
2025-07-06 00:20:17 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
ragflow
/
sdk
/
python
/
test
/
common.py
4 lines
93 B
Python
Raw
Normal View
History
Unescape
Escape
API: create dataset (#1106) ### What problem does this PR solve? This PR have finished 'create dataset' of both HTTP API and Python SDK. HTTP API: ``` curl --request POST --url http://<HOST_ADDRESS>/api/v1/dataset --header 'Content-Type: application/json' --header 'Authorization: <ACCESS_KEY>' --data-binary '{ "name": "<DATASET_NAME>" }' ``` Python SDK: ``` from ragflow.ragflow import RAGFLow ragflow = RAGFLow('<ACCESS_KEY>', 'http://127.0.0.1:9380') ragflow.create_dataset("dataset1") ``` TODO: - ACCESS_KEY is the login_token when user login RAGFlow, currently. RAGFlow should have the function that user can add/delete access_key. ### Type of change - [x] New Feature (non-breaking change which adds functionality) - [x] Documentation Update --------- Signed-off-by: Jin Hai <haijin.chn@gmail.com>
2024-06-11 11:16:37 +08:00
create and update dataset (#2110) ### What problem does this PR solve? Added the ability to create and update dataset for SDK ### Type of change - [x] New Feature (non-breaking change which adds functionality) --------- Co-authored-by: root <root@xwg> Co-authored-by: Kevin Hu <kevinhu.sh@gmail.com>
2024-08-27 15:23:50 +08:00
API_KEY
=
'
ragflow-k0N2I1MzQwNjNhMzExZWY5ODg1MDI0Mm
'
API: create dataset (#1106) ### What problem does this PR solve? This PR have finished 'create dataset' of both HTTP API and Python SDK. HTTP API: ``` curl --request POST --url http://<HOST_ADDRESS>/api/v1/dataset --header 'Content-Type: application/json' --header 'Authorization: <ACCESS_KEY>' --data-binary '{ "name": "<DATASET_NAME>" }' ``` Python SDK: ``` from ragflow.ragflow import RAGFLow ragflow = RAGFLow('<ACCESS_KEY>', 'http://127.0.0.1:9380') ragflow.create_dataset("dataset1") ``` TODO: - ACCESS_KEY is the login_token when user login RAGFlow, currently. RAGFlow should have the function that user can add/delete access_key. ### Type of change - [x] New Feature (non-breaking change which adds functionality) - [x] Documentation Update --------- Signed-off-by: Jin Hai <haijin.chn@gmail.com>
2024-06-11 11:16:37 +08:00
HOST_ADDRESS
=
'
http://127.0.0.1:9380
'
Reference in New Issue
Copy Permalink