Supabase Vector

Active
GitHub TypeScript Apache-2.0

Description

Supabase's built-in pgvector search, turning Postgres into a RAG database.

Key Features

  • pgvector — Native Postgres vector type and indexes
  • Hybrid search — Vector + full-text + scalar filters in a single SQL query
  • Realtime — Document changes pushed to clients via Realtime
  • RLS — Row-level security policies protect multi-tenant data
  • Edge Functions — Deno edge functions for embedding generation
  • Auth + Storage — Built-in auth and file storage

Use Cases

💡 Provide a one-stop backend plus vector search for SaaS apps.
💡 Quickly build a document RAG system with auth.
💡 Fuse traditional SQL business logic with vector search in the same DB.

Strengths & Limitations

Strengths

  • Actively maintained, recent updates
  • High community interest (108.1k stars)
  • Permissive open-source license (Apache-2.0)

Categories

Quick Start

# Enable vector in SQL
create extension vector;
create table docs (id bigserial primary key, content text, embedding vector(1536));
# Query via the Supabase JS client
const { data } = await supabase.rpc('match_docs', {
  query_embedding: embedding, match_count: 5,
});

Related Projects

RAGatouille

4.0k · Python
Stale C

Easily use and train state of the art late-interaction retrieval methods (ColBERT) in any RAG pipeline. Designed for modularity and ease-of-use, backed by research.

ragpythonembedding +1
  • · ColBERT late-interaction retrieval: wraps advanced ColBERT models into simple APIs, enabling late-interaction retrieval methods in RAG pipelines without deep IR research knowledge
  • · End-to-end training and fine-tuning: built-in RAGTrainer and TrainingDataProcessor with automatic deduplication, positive/negative pairing and hard negative mining, supporting training from scratch or fine-tuning pretrained models
  • · Modular composable architecture: DataProcessor, NegativeMiner and other components can be used independently, with support for custom NegativeMiner integration into training pipelines

MemAgent

1.1k · Python
Stale B

A MemAgent framework that can extrapolate to 3.5M context tokens, along with a training framework for RL training of any agent workflow.

memoryagentrag +2
  • · Ultra-Long Context Processing: Extrapolate from 8K training context to 3.5M tokens with performance loss under 5%
  • · Reinforcement Learning Driven: Trained with RLVR (Reinforcement Learning from Verifiable Rewards), extends DAPO algorithm for end-to-end multi-turn conversation optimization
  • · Linear Time Complexity: Breaks through computational bottlenecks in long-text processing with linear resource scaling