August 1st, 2024

SQLite-vec v0.1.0: a vector search SQLite extension that runs everywhere

sqlite-vec v0.1.0 is a new SQLite extension for vector search, supporting multiple programming languages and operating systems. It focuses on brute-force search, with future updates planned for ANN indexing.

Read original articleLink Icon
SQLite-vec v0.1.0: a vector search SQLite extension that runs everywhere

sqlite-vec v0.1.0 is a new SQLite extension designed for vector search, developed entirely in C without dependencies and licensed under MIT/Apache-2.0. This stable release allows users to integrate it into various projects, with installation options available for multiple programming languages including Python, Node.js, Ruby, Rust, and Go. The extension operates similarly to SQLite's full-text search, enabling users to create virtual tables with vector columns and perform KNN-style queries efficiently. It is compatible with major operating systems, including MacOS, Linux, and Windows, and can run in web browsers via WebAssembly.

Currently, sqlite-vec focuses on brute-force vector search, which is effective for datasets typically ranging from thousands to hundreds of thousands of vectors. Future updates are expected to introduce approximate nearest neighbor (ANN) indexing. The extension supports vector quantization techniques to reduce storage space and improve query speed, with minimal loss in accuracy. Benchmarks indicate that sqlite-vec performs well in various scenarios, particularly with smaller dimensions and bit vectors, achieving fast query times. However, performance may decline with larger datasets, especially with float vectors. Overall, sqlite-vec is positioned as a practical solution for local AI applications, with ongoing developments anticipated to enhance its capabilities further.

Link Icon 3 comments
By @jeanloolz - 3 months
Very happy to see this extension already out. I tried some of the previous alpha version and is incredibly much easier to use and integrate than the previous sqlite-vss extension. Kudos to the creator.
By @moffers - 3 months
I’m really very excited by this. Creating local chatbots/local LLM applications has become such a fun exercise, and SQLite has been my go to for starting projects anyway