Core Concepts
Reasoning
Memory & Retrieval
Agent Types
Design Patterns
Training & Alignment
Frameworks
Tools
Safety & Security
Evaluation
Meta
Core Concepts
Reasoning
Memory & Retrieval
Agent Types
Design Patterns
Training & Alignment
Frameworks
Tools
Safety & Security
Evaluation
Meta
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)
Supabase integrates pgvector as a PostgreSQL extension, allowing vectors to be stored alongside relational data in the same schema:2)
CREATE EXTENSION IF NOT EXISTS vector WITH SCHEMA extensions;VECTOR columnsSupabase Edge Functions (serverless TypeScript/Deno functions) handle embedding generation and processing:3)
Since Supabase Edge Runtime v1.36.0, the gte-small model (384 dimensions) runs natively within Edge Functions:4)
const model = new Supabase.ai.Session('gte-small')Supabase exposes vector search through RPC functions callable via client SDKs:5)
⇔, ↔, <#>)supabase.rpc()Vector Buckets (launched 2026) provide S3-backed vector storage for larger-scale workloads:6)
Supabase facilitates retrieval-augmented generation workflows:7)
Row-level security (RLS) applies to vector tables like any PostgreSQL relation:8)
Supabase provides an automated embedding generation pipeline:9)
| 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)