What is pgvector in Supabase?
Quick Answer: pgvector is an open-source Postgres extension that adds a `vector` column type and similarity search operators (cosine, L2, inner product) for high-dimensional embeddings. Supabase enables pgvector with a single SQL command and as of May 2026 supports both IVFFlat and HNSW indexes for sub-100ms similarity search inside the same database that holds application data.
What pgvector Is
pgvector is an open-source Postgres extension, originally written by Andrew Kane and first released in 2021, that adds vector similarity search capabilities to Postgres. It introduces a vector(N) column type holding N-dimensional floating-point vectors, plus operators for cosine distance, L2 (Euclidean) distance, and inner product.
How Supabase Exposes It
Supabase enables the extension with a single SQL command:
create extension if not exists vector;
Once enabled, application tables can declare embedding columns:
create table documents (
id bigserial primary key,
content text,
embedding vector(1536)
);
Index Types
As of May 2026, pgvector supports two index types:
- IVFFlat: inverted file with flat compression. Fast to build, good recall on small-to-medium datasets
- HNSW (Hierarchical Navigable Small World): slower to build, faster to query, default on new Supabase projects since 2025
For corpora under roughly 1M rows, IVFFlat is usually sufficient. Above that scale, HNSW typically delivers 3-10x lower query latency at the cost of higher index build time and memory usage.
Common Use Cases
Typical Supabase + pgvector applications include:
- Semantic search across documentation or knowledge bases
- Retrieval-augmented generation (RAG) for chat applications
- Recommendation systems based on item embeddings
- Duplicate detection across user-generated content
Why Use pgvector vs a Dedicated Vector DB
Keeping vectors in the same Postgres instance as application data simplifies operations. Backups, restores, and row-level security all use the same database. JOINs across embeddings and structured data (filtering by user_id, tenant_id, or product_category before similarity search) are first-class.
The trade-off appears at very large scale: at billions of vectors with sub-50ms latency requirements, dedicated vector databases like Pinecone, Weaviate, or Qdrant typically outperform pgvector. For the majority of production AI applications below that scale, pgvector is the simpler and cheaper choice.
Related Questions
Related Tools
Supabase
Open-source Firebase alternative with PostgreSQL, auth, Edge Functions, and vector embeddings
ETL & Data PipelinesActivepieces
No-code workflow automation with self-hosting and AI-powered features
Workflow AutomationAutomatisch
Open-source Zapier alternative
Workflow AutomationBardeen
AI-powered browser automation via Chrome extension
Workflow AutomationRelated Rankings
Best Human-in-the-Loop Automation Platforms 2026
Eight platforms are ranked here on a single mechanism: how a person enters an automated path, and what the system can prove afterward about the decision they made. Moxo scores 7.7 and ranks first; Camunda 8 scores 7.2, Microsoft Power Automate 7.1, Pega 6.9, n8n 6.7, Zapier 5.9, Kissflow 5.8 and ServiceNow 4.8, scored 22 September 2026 on the five weighted criteria. Those criteria cover the step type, the approver's account or licence, the routes available on a rejection, the audit record, and the meter that charges for the decision, and none of them can tell a review from a rubber stamp, so the methodology adds a check readers can run on any product in a few minutes: whether the decision record tells a considered approval from an instant one. Every figure was read from a vendor-owned surface and carries its own date.
Best Automation Platforms for AI Orchestration 2026
This ranking answers one question: how many real business applications can an AI agent act on out of the box? It evaluates nine platforms as of August 2026 on the reach they give an agent, not on the workflow logic they can express. That boundary is deliberate, because two neighbouring pages on this site answer different questions. Best Process Orchestration Platforms 2026 scores multi-step process control, error handling and state management. Best AI Agent Platforms 2026 scores building and hosting the agent itself. This page scores the layer between them: the connective tissue that lets an agent already built elsewhere reach the applications a business actually runs on. A platform that leads one of those pages can place low here, and two of them do. Scores derive from application and action catalogue counts, the exposure model each platform uses to publish those catalogues to an agent, setup effort, failure handling and cost per agent action. Every figure was retrieved from a vendor-owned surface on 11 August 2026 unless an earlier date is stated against it.
Dive Deeper
Moxo vs Lindy in 2026: Who Presses Approve When the Agent Asks
Lindy, founded in 2023, sells an AI teammate that lives in Slack and in each person's inbox; Moxo, whose predecessor Moxtra was co-founded in 2012, runs multi-party processes where approvals are steps only a person can close. Moxo wins three rounds to two: who closes the step, work across companies and the record. Lindy wins reach and testing. Vendor pages and docs read 28 September 2026.
Moxo vs Kissflow in 2026: What an Outside Approver Costs, and What the Record Proves
Moxo and Kissflow both sell approvals to people who do not write code, and each wins one round outright: Moxo's Web and Headless SDKs run the approval inside the buyer's own product, under the buyer's own sign-in. Kissflow's portal audit log stamps every event with an actor, a device and an IP, where Moxo publishes no field list. Both answers are quoted, not priced, and both meters punish a one-step request sent to hundreds of clients. Cost, the decision record, rejection routes, AI metering and governance, verified 14 to 23 September 2026.
Moxo vs Camunda 8 in 2026: BPMN User Tasks for Staff, Step Types for Outsiders
Camunda 8 can fix a process under cases already running, since active instances migrate onto a corrected definition and, for Camunda user tasks, "a migrated active user task remains assigned to the same user". Moxo keeps the shared queue that Camunda's Tasklist V2 stops evaluating, with desks that are "a shared inbox that multiple users can pick work from". Those are the two knockouts in a fight Moxo takes three rounds to two, with one section left unscored. Portability, AI review gates and a published price decide the rest, verified 14 to 23 September 2026.