Knowledgebase
Get Knowledgebase
Retrieve knowledgebases for your project
GET
Get Knowledgebase
Retrieves knowledgebase associated with your project. Currently, each project is limited to one knowledgebase.
Endpoint
Headers
Your project API key for authentication
Response
Returns an array of knowledgebase objects. Due to current limitations, the array will contain at most one knowledgebase.
Unique identifier for the knowledgebase
Name of the knowledgebase
Type of the knowledgebase (currently only supports “pgvector”)
The embedding model used for the knowledgebase. One of:
- text-embedding-ada-002
- text-embedding-3-small
- text-embedding-3-large
Maximum size of text chunks in characters
Number of overlapping characters between adjacent chunks
Example response:
Error Responses
Status Code | Description |
---|---|
401 | No API key provided or invalid API key |
500 | Internal server error |
Implementation Notes
- Currently limited to one knowledgebase per project
- Uses server-side actions for data fetching
Example usage with fetch: