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:
[]
= "0.1.3"
= "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 sqlite3_auto_extension;
use sqlite3_vec_init;
unsafe