curl --request POST \
--url https://api.gbase.ai/v1/datasets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"url_rules": "<unknown>",
"id": "<string>",
"embedding_model_name": "<string>",
"embedding_dimensions": 2
}
'{
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"robots": [
{
"created_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"apis": [
{
"created_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"function_call_name": "<string>",
"openapi_url": "<string>",
"server_url": "<string>",
"path": "<string>",
"method": "<string>",
"header_authorization": "<unknown>",
"function_type": "<string>",
"function_status": "<string>",
"share_status": "<string>",
"user_id": "<string>",
"function_call_description": "<string>",
"matching_keywords": "<unknown>",
"llm_sta": true,
"body": "<unknown>",
"auth_token_curl": "<unknown>",
"body_required": "<unknown>",
"request_explanation": "<string>"
}
],
"user_id": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"discrible": "<string>",
"subject_name": "<string>",
"prompt": "<string>",
"robot_type": "rag",
"ai_type": "private",
"ai_model": "file",
"ai_status": "ready"
}
],
"user_id": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"data_status": "init",
"description": "<string>",
"metadata": "<unknown>",
"url_rules": "<unknown>"
}Create dataset
curl --request POST \
--url https://api.gbase.ai/v1/datasets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"url_rules": "<unknown>",
"id": "<string>",
"embedding_model_name": "<string>",
"embedding_dimensions": 2
}
'{
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"robots": [
{
"created_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"apis": [
{
"created_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"function_call_name": "<string>",
"openapi_url": "<string>",
"server_url": "<string>",
"path": "<string>",
"method": "<string>",
"header_authorization": "<unknown>",
"function_type": "<string>",
"function_status": "<string>",
"share_status": "<string>",
"user_id": "<string>",
"function_call_description": "<string>",
"matching_keywords": "<unknown>",
"llm_sta": true,
"body": "<unknown>",
"auth_token_curl": "<unknown>",
"body_required": "<unknown>",
"request_explanation": "<string>"
}
],
"user_id": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"discrible": "<string>",
"subject_name": "<string>",
"prompt": "<string>",
"robot_type": "rag",
"ai_type": "private",
"ai_model": "file",
"ai_status": "ready"
}
],
"user_id": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"data_status": "init",
"description": "<string>",
"metadata": "<unknown>",
"url_rules": "<unknown>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful Response
255Show child attributes
100Show child attributes
255255255255255505050100255255100RAG: rag
DIGITAL_HUMAN: digital_human
AGENT: agent
CATALOG_AGENT: catalog_agent
GENERAL_AGENT: general_agent
100DEFAULT: default
DEMO: demo
PUBLIC: public
PRIVATE: private
TRENDING: trending
20FILE: file
WEBSITE: website
DIGITAL_HUMAN: digital_human
AGENT: agent
20INIT: init
READY: ready
FROZEN: frozen
20100INIT: init
READY: ready
CLONING_TARGET: cloning_target
CLONING_SOURCE: cloning_source
CLONING_FAILED: cloning_failed
FROZEN: frozen
14