Knowledgebase
Create Knowledgebase
Create a new knowledgebase for your project
POST
Create Knowledgebase
Creates a new knowledgebase for your project. Currently, each project is limited to one knowledgebase.
Endpoint
Headers
Your project API key for authentication
Request Body
Name of the knowledgebase
Type of the knowledgebase. Currently only supports “pgvector”
The embedding model to use. One of:
- text-embedding-ada-002
- text-embedding-3-small
- text-embedding-3-large
Maximum size of text chunks in characters. Defaults to 500
Number of overlapping characters between adjacent chunks. Defaults to 50
Example request:
Response
A successful request will return a 201 status code with a success message.
Example response:
Error Responses
Status Code | Description |
---|---|
400 | Invalid request body or validation error |
401 | Invalid API key |
500 | Internal server error |
Usage Notes
- Only one knowledgebase can exist per project
- The embedding model cannot be changed after creation
- Choose the embedding model based on your needs:
- text-embedding-ada-002: Legacy model, good general purpose
- text-embedding-3-small: Faster, more efficient
- text-embedding-3-large: Most powerful, best quality