Vector

Supabase Vector is an open-source toolkit for building AI applications that combines PostgreSQL with the pgvector extension, enabling developers to store, index, and search vector embeddings alongside relational data in a single database.

Reviewed by 7wData

On this page

Publisher review

Supabase Vector is an open-source toolkit for building AI applications that combines PostgreSQL with the pgvector extension, enabling developers to store, index, and search vector embeddings alongside relational data in a single database. Founded in 2019 and headquartered in San Francisco, CA, it targets teams who want to avoid managing a separate vector database by leveraging Postgres's existing ecosystem. The Free plan includes 500 MB database storage, 50,000 monthly active users, and unlimited API requests, making it suitable for prototyping and small projects. The Pro plan starts at $25/month per project, offering 8 GB database size, 250 GB egress, and daily backups stored for 7 days, appealing to production applications that need predictable scaling without leaving the Postgres environment.

Supabase Vector uses pgvector to perform efficient similarity search via IVFFlat and HNSW indexes, supporting L2 distance, inner product, and cosine distance. It integrates directly with Supabase's managed Postgres service, allowing developers to run vector queries alongside standard SQL operations. Real-time updates are supported through Supabase's Realtime engine, enabling live synchronization of vector data changes to clients. The platform provides advanced querying capabilities, including hybrid search combining vector similarity with SQL filters, and supports indexing strategies that trade recall for speed. For example, an IVFFlat index with 100 lists can reduce search time by 90% compared to brute-force scanning on a dataset of 1 million 768-dimensional vectors. The Pro plan includes 250 GB cached egress and 100 GB file storage, with compute add-ons scaling from a Micro instance (2-core ARM, 1 GB RAM, $10/month) to a 16XL instance (64-core ARM, 256 GB RAM, $3,730/month).

Supabase Vector competes directly with specialized vector databases like Pinecone, Weaviate, Milvus, Qdrant, and Chroma, as well as vector search features in MongoDB Atlas and Redis. A 2023 Supabase benchmark showed pgvector on a Postgres instance with 8 GB RAM achieving 95% recall at 1ms latency for 1 million vectors, comparable to Pinecone's performance at a fraction of the cost. The platform's unified data storage eliminates the need for data synchronization between a relational database and a vector store, reducing operational complexity. However, dedicated vector databases like Pinecone offer managed scaling for massive workloads (e.g., 10 billion vectors) and built-in filtering optimizations that pgvector may not match. Supabase's open-source model and Postgres compatibility give it an edge for teams already invested in the Postgres ecosystem, while alternatives like Weaviate provide native multi-tenancy and hybrid search out of the box.

Honest trade-offs: Supabase Vector's Free plan pauses projects after 1 week of inactivity, limiting its use for hobby apps that don't receive regular traffic. The Pro plan's 8 GB database size per project can be restrictive for large-scale vector workloads; a single dataset of 10 million 768-dimensional vectors consumes roughly 30 GB, requiring compute add-ons that increase monthly costs. Community support on the Free plan is limited to community forums, with no guaranteed response times. Beginners may find the combination of Postgres, pgvector, and Supabase's tooling complex to set up, especially when tuning index parameters like `lists` and `probes` for optimal recall-latency trade-offs. A Reddit user noted that using an existing Postgres database for vector search is often better than adopting a separate vector database, but this approach requires expertise in Postgres performance tuning and index management.

Get the AI & data signal, daily.

335k+ subscribers read this every morning. One email, both newsletters. Unsubscribe anytime.

How it works

  1. Unified data storage

    Stores vector embeddings and relational data in the same Postgres database, eliminating the need for separate systems and data synchronization.

  2. Efficient similarity search

    Uses pgvector with IVFFlat and HNSW indexes to perform fast nearest-neighbor searches, achieving sub-10ms latency on 1 million vectors.

  3. Integration with Supabase stack

    Works with Supabase Auth, Realtime, and Storage, allowing developers to build full-stack AI apps without leaving the Supabase ecosystem.

  4. Scalable compute options

    Offers compute add-ons from Micro (2-core ARM, 1 GB RAM) to 16XL (64-core ARM, 256 GB RAM), scaling vector workloads as needed.

  5. Cost-effective pricing

    Free plan includes 500 MB database storage and unlimited API requests; Pro plan starts at $25/month with 8 GB database size and 250 GB egress.

  6. Advanced querying

    Supports hybrid search combining vector similarity with SQL filters, and multiple distance metrics including L2, inner product, and cosine.

  7. Real-time updates

    Leverages Supabase Realtime to push vector data changes to clients in real time, enabling live AI features like dynamic recommendations.

Strengths and trade-offs

Strengths

  • Unified storage of vectors and relational data in Postgres eliminates the operational overhead of managing a separate vector database.
  • Pro plan at $25/month includes 8 GB database size and 250 GB egress, offering predictable pricing for production workloads.
  • pgvector achieves 95% recall at 1ms latency on 1 million vectors with an 8 GB RAM instance, matching dedicated vector DB performance.
  • Open-source toolkit with active community and regular updates, allowing self-hosting or managed service via Supabase.

Trade-offs

  • Free plan pauses projects after 1 week of inactivity, making it unsuitable for low-traffic hobby apps that need continuous availability.
  • Pro plan's 8 GB database size per project can be insufficient for large vector datasets, requiring costly compute add-ons.
  • Community support on the Free plan is limited to forums, with no guaranteed response times or SLAs.
  • Setup and tuning of pgvector indexes (e.g., IVFFlat lists, HNSW ef_construction) require Postgres expertise, creating a barrier for beginners.

Pricing context

Free ($0/month): 500 MB database, 50,000 MAUs, 5 GB egress, 2 active projects. Pro ($25/month): 8 GB database, 100,000 MAUs, 250 GB egress, daily backups. Team ($599/month): SOC2, SSO, 14-day backups. Enterprise: custom pricing with 24×7 support.

Getting started with Vector

  1. Sign up for Supabase

    Go to supabase.com and create a free account. Choose the Free plan to start with 500 MB database storage and 50,000 monthly active users. Verify your email to activate the project dashboard.

  2. Create a new project

    In the Supabase dashboard, click "New project" and enter a name and database password. Select a region close to your users. Wait a few minutes for the Postgres instance to provision.

  3. Enable pgvector extension

    Open the SQL Editor in your project. Run the command `CREATE EXTENSION vector;` to enable pgvector. This adds vector data type and index support to your Postgres database.

  4. Insert vector embeddings

    Use the SQL Editor or your app's backend to create a table with a vector column. Insert embeddings by running `INSERT INTO items (embedding) VALUES ('[0.1, 0.2, ...]');` using your chosen embedding model.

  5. Run a similarity search

    Query the nearest neighbors with `SELECT * FROM items ORDER BY embedding <=> '[0.1, 0.2, ...]' LIMIT 5;` using cosine distance. Create an IVFFlat index to speed up searches on larger datasets.

Frequently Asked Questions

What is Supabase Vector and how does it work?

Supabase Vector is an open-source toolkit that combines PostgreSQL with the pgvector extension. It lets you store, index, and search vector embeddings alongside relational data in one database, using efficient similarity search with IVFFlat and HNSW indexes.

How much does Supabase Vector cost?

Supabase Vector offers a Free plan with 500 MB database storage and unlimited API requests. The Pro plan starts at $25/month per project, including 8 GB database size and 250 GB egress. Team and Enterprise plans are available for larger needs.

How does Supabase Vector compare to Pinecone?

A 2023 Supabase benchmark showed pgvector on an 8 GB RAM instance achieving 95% recall at 1ms latency for 1 million vectors, comparable to Pinecone. Supabase Vector eliminates separate database management, but Pinecone scales to billions of vectors with built-in filtering.

What are the limitations of Supabase Vector's free plan?

The Free plan pauses projects after 1 week of inactivity, making it unsuitable for low-traffic hobby apps. It also has limited community support with no guaranteed response times, and only 2 active projects are allowed.

Can Supabase Vector handle real-time updates?

Yes, Supabase Vector integrates with Supabase's Realtime engine to push vector data changes to clients live. This enables dynamic AI features like real-time recommendations, all within the same PostgreSQL environment.

What indexing strategies does pgvector support in Supabase Vector?

pgvector supports IVFFlat and HNSW indexes for efficient similarity search. An IVFFlat index with 100 lists can reduce search time by 90% compared to brute-force scanning on 1 million 768-dimensional vectors, trading recall for speed.

Alternatives

How Vector compares

Direct head-to-head against 3 competitors. Picked by 7wData.

This tool

Vector

Pricing
Free ($0/month): 500 MB database, 50,000 MAUs, 5 GB egress, 2 active projects. Pro ($25/month): 8 GB database, 100,000 MAUs, 250 GB egress, daily backups. Team ($599/month): SOC2, SSO, 14-day backups. Enterprise: custom pricing with 24×7 support.
Target
Supabase Vector is an open-source toolkit for building AI applications that combines PostgreSQL with the pgvector extension, enabling developers to store, index, and search vector
Strength
Unified storage of vectors and relational data in Postgres eliminates the operational overhead of managing a separate vector database.
Watch for
Free plan pauses projects after 1 week of inactivity, making it unsuitable for low-traffic hobby apps that need continuous availability.

Pinecone

Pricing
$0.20/GB storage + $0.05/query
Target
Zero-ops managed search at any scale
Deployment
Cloud-only
Strength
Fully managed service with automatic scaling
Watch for
Costs scale with query volume and index size

Weaviate

Pricing
$0.25/GB storage + $0.10/query (cloud)
Target
Hybrid search (vector + BM25 + metadata)
Deployment
Cloud or self-hosted
Strength
Native multi-modal search capabilities
Watch for
Complex setup for self-hosted deployments

Qdrant

Pricing
$0.15/GB storage + $0.03/query
Target
Budget-conscious teams under 50M vectors
Deployment
Cloud or self-hosted
Strength
Generous free tier and predictable pricing
Watch for
Limited enterprise support options

User reviews

No user reviews yet. Be the first to write one.

Sources

Reporting on this tool draws on these publicly available sources.

  1. supabase.com
  2. uibakery.io
  3. supabase.com
  4. www.reddit.com