#vector-store #sqlite #rig #sq-lite-based #framework

rig-sqlite

SQLite-based vector store implementation for the rig framework

34 releases

Uses new Rust 2024

new 0.1.33 Feb 3, 2026
0.1.30 Dec 15, 2025
0.1.27 Nov 10, 2025
0.1.15 Jul 30, 2025
0.1.1 Dec 19, 2024

#2349 in Database interfaces

Download history 74/week @ 2025-10-16 218/week @ 2025-10-23 150/week @ 2025-10-30 24/week @ 2025-11-06 54/week @ 2025-11-13 24/week @ 2025-11-20 16/week @ 2025-11-27 32/week @ 2025-12-04 74/week @ 2025-12-11 76/week @ 2025-12-18 18/week @ 2025-12-25 3/week @ 2026-01-08 48/week @ 2026-01-15 30/week @ 2026-01-22 21/week @ 2026-01-29

102 downloads per month
Used in 2 crates (via wg-ragsmith)

MIT license

31KB
445 lines

+ SQLite logo



Rig-SQLite

This companion crate implements a Rig vector store based on SQLite.

Usage

Add the companion crate to your Cargo.toml, along with the rig-core crate:

[dependencies]
rig-sqlite = "0.1.3"
rig-core = "0.4.0"

You can also run cargo add rig-sqlite rig-core to add the most recent versions of the dependencies to your project.

See the /examples folder for usage examples.

Important Note

Before using the SQLite vector store, you must initialize the SQLite vector extension. Add this code before creating your connection:

use rusqlite::ffi::sqlite3_auto_extension;
use sqlite_vec::sqlite3_vec_init;

unsafe {
    sqlite3_auto_extension(Some(std::mem::transmute(sqlite3_vec_init as *const ())));
}

Dependencies

~41–59MB
~854K SLoC