繁體中文
cURL
curl --request POST \ --url https://app.pathors.com/knowledgebases/{knowledgebaseId}/datasets \ --header 'Content-Type: <content-type>' \ --header 'x-api-key: <x-api-key>' \ --data '{}'
{ "message": "<string>", "success": true }
在指定的知識庫中上傳和建立新的資料集
https://api.pathors.com
POST /knowledgebases/{knowledgebaseId}/datasets
multipart/form-data
curl -X POST \ -H "x-api-key: your_api_key" \ -F "dataset=@/path/to/your/file.pdf" \ https://api.pathors.com/knowledgebases/kb_abc123/datasets
{ "message": "Dataset Uploaded successfully, currently embedding in the background", "success": true }
/api/datasets