Table of Contents

Supabase Vector

Supabase Vector leverages PostgreSQL with the pgvector extension to enable efficient storage, indexing, and similarity search of high-dimensional vector embeddings within the Supabase platform. It combines vector search with Supabase's authentication, row-level security, Edge Functions, and real-time capabilities.1)

pgvector Integration

Supabase integrates pgvector as a PostgreSQL extension, allowing vectors to be stored alongside relational data in the same schema:2)

Edge Functions

Supabase Edge Functions (serverless TypeScript/Deno functions) handle embedding generation and processing:3)

Built-in Embedding Model

Since Supabase Edge Runtime v1.36.0, the gte-small model (384 dimensions) runs natively within Edge Functions:4)

Supabase exposes vector search through RPC functions callable via client SDKs:5)

Vector Buckets (launched 2026) provide S3-backed vector storage for larger-scale workloads:6)

RAG Patterns

Supabase facilitates retrieval-augmented generation workflows:7)

Row-Level Security

Row-level security (RLS) applies to vector tables like any PostgreSQL relation:8)

Automatic Embeddings Pipeline

Supabase provides an automated embedding generation pipeline:9)

Supabase Vector vs Alternatives

Aspect Supabase Vector Standalone pgvector Pinecone
Setup Instant with Supabase project Self-managed PostgreSQL Managed SaaS
Auth/RLS Built-in with Supabase Auth Manual implementation API key-based
Scale Millions (pgvector) + 50M (Vector Buckets) Depends on PostgreSQL tuning Billions with auto-sharding
Cost Included in Supabase pricing Free extension Usage-based subscription
Best For AI apps needing auth, real-time, and relational data Custom PostgreSQL deployments Pure vector workloads at scale

Supabase Vector excels in applications requiring unified relational and vector data with built-in authentication and security.10)

See Also

References