lanterndata/lantern
A PostgreSQL extension that adds HNSW-indexed vector columns for high-speed approximate nearest-neighbor search and embedding storage.

Lantern extends PostgreSQL with dedicated vector data types and the lantern_hnsw index, enabling fast approximate nearest-neighbor queries over embedding vectors. It builds on the usearch HNSW implementation and can generate embeddings directly in the database. The extension exposes SQL functions for inserting vectors, running ordered-by-distance queries, and managing the vector index, allowing developers to build RAG pipelines and semantic search features entirely within Postgres.