aicoolies logo

sqlite-vec

Vector search extension for SQLite that runs anywhere

Share
freeOpen Source
Visit Website →

sqlite-vec is a lightweight vector search extension for SQLite written in pure C with zero dependencies. It brings nearest-neighbor search capabilities directly into SQLite databases, enabling AI applications to store and query embeddings without running a separate vector database. The extension works everywhere SQLite runs including Linux, macOS, Windows, WebAssembly in browsers, and even Raspberry Pi devices. Sponsored by Mozilla Builders, Fly.io, and Turso.

sqlite-vec is a compact vector search extension for SQLite created by Alex Garcia with backing from Mozilla Builders, Fly.io, Turso, and SQLite Cloud. Written in pure C with zero external dependencies, the extension adds approximate nearest-neighbor search directly inside SQLite — no separate vector database process, no network calls, no infrastructure complexity. With over 7,400 GitHub stars, it has become the default choice for developers who need embedding search in resource-constrained or embedded environments where running Qdrant, Weaviate, or Pinecone would be overkill.

The extension introduces virtual tables that store float32 and int8 vectors alongside regular SQLite data, enabling hybrid queries that combine traditional SQL filters with KNN vector similarity in a single statement. It supports brute-force exact search for small datasets and an IVF index for larger collections, with proper DELETE support and constraint-based filtering on KNN queries. Since sqlite-vec compiles to a single C file, it runs everywhere SQLite does: server-side Linux and macOS, Windows desktop apps, mobile via SQLite's native Android and iOS support, edge devices like Raspberry Pi, and even in browsers through WebAssembly.

For AI application developers, sqlite-vec eliminates an entire infrastructure layer. RAG pipelines, semantic search features, recommendation engines, and document retrieval systems can all run locally with just SQLite as the storage backend. The extension pairs naturally with embedding APIs from OpenAI, Cohere, or local models through Ollama — generate vectors in your application code and store them directly in the same database as your relational data. This simplicity makes sqlite-vec particularly popular for prototyping AI features, building offline-capable applications, and deploying to environments where a managed vector database is impractical.

Pricing

Free and open source (MIT/Apache-2.0 license)

Platforms

All platforms — anywhere SQLite runs, including WASM

Categories

Tags

Use Cases

Related Tools

Vald logo

Vald

Cloud-native distributed vector search engine built for Kubernetes with automatic indexing and horizontal scaling.

Vald is a highly scalable distributed approximate nearest neighbor (ANN) vector search engine designed for cloud-native, Kubernetes-based architectures. Maintained by LY Corporation and listed in the CNCF Landscape, it uses the NGT algorithm (developed at Yahoo Japan), supports automatic incremental index backup, and handles billion-scale datasets across loosely coupled microservice components that scale horizontally via Helm.

open-sourceOpen Source
FAISS logo

FAISS

Library for efficient similarity search and clustering of dense vectors at billion-scale.

FAISS is Meta AI Research's open-source library for efficient similarity search and clustering of dense vectors. It implements approximate nearest-neighbor algorithms designed to scale to billions of vectors, with optimized indexes that fit in RAM and GPU acceleration for the largest workloads. Engineering teams use FAISS as the retrieval primitive underneath custom RAG pipelines, recommendation systems, and large-scale embedding search infrastructure.

free
hnswlib logo

hnswlib

Header-only C++ implementation of HNSW for fast approximate nearest-neighbor search.

hnswlib is a header-only C++ library implementing the Hierarchical Navigable Small World (HNSW) graph algorithm for approximate nearest-neighbor search, with Python bindings and a tiny dependency footprint. Originally developed by the nmslib team, it has become the default HNSW implementation embedded inside many vector databases and search products. Engineers use it directly when they want HNSW retrieval without pulling in a heavyweight vector DB.

free
Marqo logo

Marqo

Embedding-first search and discovery engine for AI-powered product experiences.

Marqo is an open-source tensor search engine that combines embedding generation and vector search in a single API, removing the need to manage separate embedding pipelines and vector databases. Built for product discovery and multi-modal search, it lets teams index text, images, and structured data together, returning ranked results based on semantic similarity rather than keyword overlap.

freemium
VectorChord logo

VectorChord

High-recall Postgres vector search at billion scale

VectorChord is a Postgres extension from TensorChord that brings high-recall vector search to PostgreSQL. As the spiritual successor to pgvecto.rs, it combines IVF indexes with RaBitQ quantization to deliver Pinecone-class performance at billion-vector scale while keeping all data inside a single Postgres database — no separate vector store, no two-system sync, no rewrites when the workload grows.

open-sourceOpen Source
Infinity logo

Infinity

AI-native database for hybrid RAG retrieval

Infinity is an AI-native database from InfiniFlow that unifies dense vectors, sparse vectors, tensors, and full-text search in a single engine. Built for retrieval-augmented generation (RAG) at scale, it powers hybrid search workflows where lexical matching, semantic similarity, and reranking all happen against one storage layer instead of four loosely coupled services.

open-sourceOpen Source