A vector search SQLite extension that runs anywhere!
A vector search SQLite extension that runs anywhere!
sqlite-vecAn extremely small, "fast enough" vector search SQLite extension that runs
anywhere! A successor to sqlite-vss
[!IMPORTANT]
sqlite-vecis a pre-v1, so expect breaking changes!
vec0 virtual tables
sqlite-vec is a
Mozilla Builders project,
with additional sponsorship from
Fly.io ,
Turso,
SQLite Cloud, and
Shinkai.
See the Sponsors section for more details.
See Installing sqlite-vec
for more details.
| Language | Install | More Info | |
|---|---|---|---|
| Python | pip install sqlite-vec |
sqlite-vec with Python |
|
| Node.js | npm install sqlite-vec |
sqlite-vec with Node.js |
|
| Ruby | gem install sqlite-vec |
sqlite-vec with Ruby |
|
| Go | go get -u github.com/asg017/sqlite-vec/bindings/go |
sqlite-vec with Go |
|
| Rust | cargo add sqlite-vec |
sqlite-vec with Rust |
|
| Datasette | datasette install datasette-sqlite-vec |
sqlite-vec with Datasette |
|
| rqlite | rqlited -extensions-path=sqlite-vec.tar.gz |
sqlite-vec with rqlite |
|
sqlite-utils |
sqlite-utils install sqlite-utils-sqlite-vec |
sqlite-vec with sqlite-utils |
|
| Github Release |
…Development of sqlite-vec is supported by multiple generous sponsors! Mozilla
is the main sponsor through the new Builders project.
sqlite-vec is also sponsored by the following companies:
As well as multiple individual supporters on Github sponsors!
If your company interested in sponsoring sqlite-vec development, send me an
email to get more info: https://alexgarcia.xyz
sqlite-ecosystem, Maybe
more 3rd party SQLite extensions I've developedsqlite-rembed, Generate text
embeddings from remote APIs like OpenAI/Nomic/Ollama, meant for testing and
SQL scriptssqlite-lembed, Generate text
embeddings locally from embedding models in the .gguf formatNon-finite vector components are accepted without error; resulting NULL / ±Infinity cosine distances sort ahead of the true nearest neighbor (v0.1.9)
Cosine distance returns ±Infinity for small nonzero float32 vectors, corrupting MATCH ranking; vec_normalize returns non-finite values (v0.1.9)
Linux/macOS builds bake AVX/AVX2 based on the build machine's CPU, so 0.1.10-alpha wheels SIGILL on older x86_64
0.1.9 has bad C++ code: static unsigned char NPY_MAGIC[6] = "\x93NUMPY";
[Bug]: vec0 vector chunk tables are not reported as shadow tables
musl targets still fail to compile in 0.1.9: BSD u_int*_t typedefs (same root cause as closed #156)
INSERT OR REPLACE causes UNIQUE constraint failure on vec table primary key
Memory leak in vec0Filter_knn: knn_data not freed across filter calls (v0.1.6)
sqlite-vec.c is missing "#include <sys/types.h>"
Distance threshold query silently fails when using bit quantization