Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

sqlite-vec

> 数据库
Open source

A vector search SQLite extension that runs anywhere!

8.0K stars0 likes0 views
WebsiteGitHub

About

A vector search SQLite extension that runs anywhere!

sqlite-vec

An extremely small, "fast enough" vector search SQLite extension that runs anywhere! A successor to sqlite-vss

[!IMPORTANT] sqlite-vec is a pre-v1, so expect breaking changes!

  • Store and query float, int8, and binary vectors in vec0 virtual tables
  • Written in pure C, no dependencies, runs anywhere SQLite runs (Linux/MacOS/Windows, in the browser with WASM, Raspberry Pis, etc.)
  • Store non-vector data in metadata, auxiliary, or partition key columns

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.

Installing

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

Sample usage

…

Sponsors

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

See Also

  • sqlite-ecosystem, Maybe more 3rd party SQLite extensions I've developed
  • sqlite-rembed, Generate text embeddings from remote APIs like OpenAI/Nomic/Ollama, meant for testing and SQL scripts
  • sqlite-lembed, Generate text embeddings locally from embedding models in the .gguf format

Issues· 210 open

View all issuesOpen on GitHub
  • #325

    Non-finite vector components are accepted without error; resulting NULL / ±Infinity cosine distances sort ahead of the true nearest neighbor (v0.1.9)

    Updated Sep 29, 2026
  • #324

    Cosine distance returns ±Infinity for small nonzero float32 vectors, corrupting MATCH ranking; vec_normalize returns non-finite values (v0.1.9)

    Updated Sep 29, 2026
  • #302

    Linux/macOS builds bake AVX/AVX2 based on the build machine's CPU, so 0.1.10-alpha wheels SIGILL on older x86_64

    Updated Sep 26, 2026
  • #321

    0.1.9 has bad C++ code: static unsigned char NPY_MAGIC[6] = "\x93NUMPY";

    Updated Sep 22, 2026
  • #320

    [Bug]: vec0 vector chunk tables are not reported as shadow tables

    Updated Sep 14, 2026
  • #314

    musl targets still fail to compile in 0.1.9: BSD u_int*_t typedefs (same root cause as closed #156)

    Updated Aug 4, 2026
  • #259

    INSERT OR REPLACE causes UNIQUE constraint failure on vec table primary key

    Updated Aug 4, 2026
  • #285

    Memory leak in vec0Filter_knn: knn_data not freed across filter calls (v0.1.6)

    Updated Aug 4, 2026
  • #287

    sqlite-vec.c is missing "#include <sys/types.h>"

    Updated Aug 4, 2026
  • #308

    Distance threshold query silently fails when using bit quantization

    Updated Aug 4, 2026

> Tags

Csqlitesqlite-extension

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库