Documentation Index
Fetch the complete documentation index at: https://docs.pathors.com/llms.txt
Use this file to discover all available pages before exploring further.
Request
POST https://api.pathors.com/v1/projects/{projectId}/knowledgebases
Path Parameters
Bearer token using your developer key
Body
Name of the knowledgebase
Knowledgebase backend. Currently only pgvector is supported.
Embedding model. One of text-embedding-ada-002, text-embedding-3-small, text-embedding-3-large. Cannot be changed after creation.
Maximum chunk size in characters. Defaults to 500.
Overlap between adjacent chunks in characters. Defaults to 50.
Response
Returns the created knowledgebase with status 201.
Example
curl -X POST https://api.pathors.com/v1/projects/{projectId}/knowledgebases \
-H "Authorization: Bearer dk_your_key" \
-H "Content-Type: application/json" \
-d '{
"name": "My Knowledge Base",
"type": "pgvector",
"embeddingModelName": "text-embedding-3-small",
"chunkSize": 500,
"chunkOverlap": 50
}'
{
"message": "Knowledgebase created successfully"
}
Each project is currently limited to one knowledgebase.