Vector bucket limits
This feature is in alpha
Expect rapid changes, limited features, and possible breaking updates. Share feedback as we refine the experience and expand access.
Look up the capacity and query limits for vector buckets during the alpha. Supabase can adjust them on a case-by-case basis for production workloads. Check this page when you do any of the following:
- Plan how many buckets and indexes to create
- Set
topKor page through results withnextTokenin aqueryVectorscall - Compare hosted and local vector buckets
Storage limits
The following table lists the capacity limits for vector buckets.
| Limit | Value | Notes |
|---|---|---|
| Buckets per project | 10 | Maximum number of vector buckets per Supabase project |
| Indexes per bucket | 10 | Maximum number of indexes per bucket |
| Vector dimensions | Max 4096 | Maximum dimension size for embeddings |
| Batch size | 1000 vectors | Maximum vectors per single insert/update request |
Query limits
The following table lists the queryVectors limits, which differ between hosted and local vector buckets.
| Limit | Hosted vector buckets | Local vector buckets |
|---|---|---|
Maximum topK | 10,000 | 100 |
| Maximum results per response | 100 | 100 |
nextToken query pagination | Supported | Not supported |
The bucket types differ in the following ways:
- Hosted vector buckets use Amazon S3 Vectors. When a response includes a
nextToken, send the same query again with that token to retrieve the next page. - Local vector buckets use pgvector and return the requested results in one response.
Related resources
To work with vector buckets within these limits, see the following pages:
- Creating vector buckets: create a bucket and its indexes in the Dashboard or with the SDK.
- Querying vectors: run similarity searches and retrieve more than 100 results.
- Vector bucket local development: set up local vector buckets with the Supabase CLI.