SQLite extension for vector search
Top 8.9% on sourcepulse
This project provides a lightweight SQLite extension for vector search, enabling efficient storage and querying of vector embeddings directly within SQLite databases. It targets developers and researchers needing a portable, dependency-free solution for integrating vector search into applications, particularly those leveraging SQLite.
How It Works
The extension implements vector search using the vec0
virtual table in pure C. It supports various vector types (float, int8, binary) and allows storing non-vector data in auxiliary columns. This approach offers broad compatibility, running on diverse platforms including browsers via WASM, and avoids external dependencies, simplifying deployment.
Quick Start & Requirements
pip install sqlite-vec
(Python), npm install sqlite-vec
(Node.js), gem install sqlite-vec
(Ruby), go get -u github.com/asg017/sqlite-vec/bindings/go
(Go), cargo add sqlite-vec
(Rust), datasette install datasette-sqlite-vec
(Datasette), rqlited -extensions-path=sqlite-vec.tar.gz
(rqlite), sqlite-utils install sqlite-utils-sqlite-vec
(sqlite-utils).Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The project is pre-v1, indicating potential for breaking changes. Performance is described as "fast enough," suggesting it may not be suitable for extremely high-throughput or latency-sensitive applications compared to specialized vector databases.
6 months ago
1 day