curl --request POST \
--url http://localhost:3000/api/knowledge-bases \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Product Documentation",
"description": "<string>",
"embeddingModel": "openai/text-embedding-3-small",
"chunkConfig": {
"strategy": "recursive",
"size": 512,
"overlap": 50
}
}
'curl --request POST \
--url http://localhost:3000/api/knowledge-bases \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Product Documentation",
"description": "<string>",
"embeddingModel": "openai/text-embedding-3-small",
"chunkConfig": {
"strategy": "recursive",
"size": 512,
"overlap": 50
}
}
'Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Knowledge base name
1 - 128"Product Documentation"
Knowledge base description
2000Embedding model identifier
"openai/text-embedding-3-small"
Chunk configuration
Show child attributes
Knowledge base created successfully