bep-sqlite

Crates.iobep-sqlite
lib.rsbep-sqlite
version0.1.0
created_at2024-12-19 05:52:28.350724+00
updated_at2024-12-19 05:52:28.350724+00
descriptionSQLite-based vector store implementation for the bep framework
homepage
repository
max_upload_size
id1488823
size75,920
BEP AI (bepdotai)

documentation

README

Bep logo + SQLite logo



Bep-SQLite

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

Usage

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

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

You can also run cargo add bep-sqlite bep-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 ())));
}
Commit count: 0

cargo fmt