rig/rig-sqlite
github-actions[bot] f4214540a5
chore: release (#375)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-15 10:23:05 -04:00
..
examples feat: Add support for Sqlite vector store (#122) 2024-12-03 14:58:56 -05:00
src test(rig-sqlite): Add integration test (#202) 2025-01-14 16:33:27 -05:00
tests test(rig-sqlite): Add integration test (#202) 2025-01-14 16:33:27 -05:00
CHANGELOG.md chore: release (#375) 2025-04-15 10:23:05 -04:00
Cargo.toml chore: release (#375) 2025-04-15 10:23:05 -04:00
LICENSE feat: Add support for Sqlite vector store (#122) 2024-12-03 14:58:56 -05:00
README.md feat: Add support for Sqlite vector store (#122) 2024-12-03 14:58:56 -05:00

README.md

Rig logo + 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 ())));
}