Discover and explore top open-source AI tools and projects—updated daily.
lanterndataPostgreSQL extension for vector storage and AI app development
Top 41.4% on SourcePulse
Lantern is an open-source PostgreSQL extension designed to store vector data, generate embeddings, and perform efficient vector searches, targeting developers building AI applications. It offers a lantern_hnsw index type that significantly speeds up vector search queries by leveraging a state-of-the-art HNSW implementation.
How It Works
Lantern integrates a single-header, C++ HNSW implementation (usearch) directly into PostgreSQL. This allows for efficient in-database vector indexing and searching, bypassing the need for external vector databases. The extension provides custom operators (<->, <=>, <+>) and operator classes for various distance metrics (L2 squared, cosine, Hamming), enabling flexible vector comparisons.
Quick Start & Requirements
docker run --pull=always --rm -p 5432:5432 -e "POSTGRES_USER=$USER" -e "POSTGRES_PASSWORD=postgres" -v ./lantern_data:/var/lib/postgresql/data lanterndata/lantern:latest-pg15brew tap lanterndata/lantern && brew install lantern && lantern_installHighlighted Details
pgvector and pg_embedding (Neon) in index creation time, SELECT throughput, and latency.pgvector's data types for seamless migration.Maintenance & Community
support@lantern.dev.Licensing & Compatibility
Limitations & Caveats
CREATE EXTENSION lantern;) for each PostgreSQL database.10 months ago
Inactive
pgvector
tensorchord
tensorchord
timescale
pgvector