Skip to main content
POST
/
knowledge-bases
Create Knowledge Base
curl --request POST \
  --url https://api.example.com/knowledge-bases

Request Body

{
  "name": "Product Docs",
  "description": "Internal product documentation",
  "chunk_size": 512,
  "overlap_percentage": 0.1,
  "embedding_model": "text-embedding-3-small",
  "reranker_model": "rerank-english-v3.0"
}
FieldTypeRequiredDefaultDescription
namestringyesKB name
descriptionstringnoWhat the KB contains
chunk_sizeintno512Characters per chunk
overlap_percentagefloatno0.1Overlap between chunks
embedding_modelstringnotext-embedding-3-smallEmbedding model
reranker_modelstringnonullReranker model

Response

Returns the created knowledge base with its ID.