| Crates.io | rig-sqlite |
| lib.rs | rig-sqlite |
| version | 0.1.22 |
| created_at | 2024-12-03 22:03:58.452832+00 |
| updated_at | 2025-09-15 21:59:13.911288+00 |
| description | SQLite-based vector store implementation for the rig framework |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1470708 |
| size | 116,724 |
This companion crate implements a Rig vector store based on SQLite.
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.
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 ())));
}