Vector DB
Collections
Create, list, and delete vector collections.
Create a collection
curl -X POST https://api.openadapter.in/v1/vectors/collections \
-H "Authorization: Bearer $OPENADAPTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "docs",
"vector_size": 384,
"distance": "Cosine"
}'| Field | Notes |
|---|---|
name | Unique within your account |
vector_size | Must match your embedding model's output dimension (the dashboard's "New collection" UI calls this dim) |
distance | Cosine is what the dashboard sends. Other values depend on the upstream vector service — confirm before using. |
List collections
curl https://api.openadapter.in/v1/vectors/collections \
-H "Authorization: Bearer $OPENADAPTER_API_KEY"Inspect a collection
curl https://api.openadapter.in/v1/vectors/collections/docs \
-H "Authorization: Bearer $OPENADAPTER_API_KEY"Returns point count, vector size, distance metric.
Delete a collection
curl -X DELETE https://api.openadapter.in/v1/vectors/collections/docs \
-H "Authorization: Bearer $OPENADAPTER_API_KEY"Notes
- A vector tenant is auto-provisioned for your account on the first call.
- Collections are isolated per API key — two users with the same collection name don't see each other's data.
- Don't pick a
vector_sizeyou can't generate. If you switch embedding models later, you'll need a new collection. - Each vector API call costs 0.05 of one request against your plan quota.