v1

latestOpenAPI 3.1.02026-07-24403468.9 KB

Create an empty Knowledge

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.

post/datasets

Request body

namestring required

Knowledge name

Response

200

idstring
namestring
{"stackTrail":"paths:/datasets:post:responses:200:content:application/json:schema:properties:description","oasType":"schema","type":"unknown"}
providerstring
permissionstring
{"stackTrail":"paths:/datasets:post:responses:200:content:application/json:schema:properties:data_source_type","oasType":"schema","type":"unknown"}
{"stackTrail":"paths:/datasets:post:responses:200:content:application/json:schema:properties:indexing_technique","oasType":"schema","type":"unknown"}
app_countinteger
document_countinteger
word_countinteger
created_bystring
created_atinteger
updated_bystring
updated_atinteger
{"stackTrail":"paths:/datasets:post:responses:200:content:application/json:schema:properties:embedding_model","oasType":"schema","type":"unknown"}
{"stackTrail":"paths:/datasets:post:responses:200:content:application/json:schema:properties:embedding_model_provider","oasType":"schema","type":"unknown"}
{"stackTrail":"paths:/datasets:post:responses:200:content:application/json:schema:properties:embedding_available","oasType":"schema","type":"unknown"}

Example response

{
  "id": "d0fdd4a8-7de7-4755-83d1-4e6ed6dc606e",
  "name": "testcc",
  "provider": "vendor",
  "permission": "only_me",
  "created_by": "a952836f-d846-4446-a647-465acf78eea9",
  "created_at": 1727643651,
  "updated_by": "a952836f-d846-4446-a647-465acf78eea9",
  "updated_at": 1727643651,
  "retrieval_model_dict": {
    "search_method": "semantic_search",
    "top_k": 2
  }
}