A I Hub Knowledge Base

Create an empty Knowledge

POST
/datasets

This API allows users to initialize a new knowledge base with a specified name. The created knowledge base will be empty, ready for adding files.

Authorization

bearerAuth
AuthorizationBearer <token>

JWT access token returned by Signing In (POST /auth/v1/tokens/).

In: header

Request Body

application/json

name*string

Knowledge name

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/datasets" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
"{\n  \"id\": \"d0fdd4a8-7de7-4755-83d1-4e6ed6dc606e\",\n  \"name\": \"testcc\",\n  \"description\": null,\n  \"provider\": \"vendor\",\n  \"permission\": \"only_me\",\n  \"data_source_type\": null,\n  \"indexing_technique\": null,\n  \"app_count\": 0,\n  \"document_count\": 0,\n  \"word_count\": 0,\n  \"created_by\": \"a952836f-d846-4446-a647-465acf78eea9\",\n  \"created_at\": 1727643651,\n  \"updated_by\": \"a952836f-d846-4446-a647-465acf78eea9\",\n  \"updated_at\": 1727643651,\n  \"embedding_model\": null,\n  \"embedding_model_provider\": null,\n  \"embedding_available\": null,\n  \"retrieval_model_dict\": {\n    \"search_method\": \"semantic_search\",\n    \"reranking_enable\": false,\n    \"reranking_model\": {\n      \"reranking_provider_name\": \"\",\n      \"reranking_model_name\": \"\"\n    },\n    \"top_k\": 2,\n    \"score_threshold_enabled\": false,\n    \"score_threshold\": null\n  }\n}"