pub struct SqliteVectorStore<E: EmbeddingModel + 'static, T: SqliteVectorStoreTable + 'static> { /* private fields */ }
Implementations§
Source§impl<E: EmbeddingModel + 'static, T: SqliteVectorStoreTable + 'static> SqliteVectorStore<E, T>
impl<E: EmbeddingModel + 'static, T: SqliteVectorStoreTable + 'static> SqliteVectorStore<E, T>
pub async fn new( conn: Connection, embedding_model: &E, ) -> Result<Self, VectorStoreError>
pub fn index(self, model: E) -> SqliteVectorIndex<E, T>
pub fn add_rows_with_txn( &self, txn: &Transaction<'_>, documents: Vec<(T, OneOrMany<Embedding>)>, ) -> Result<i64, Error>
pub async fn add_rows( &self, documents: Vec<(T, OneOrMany<Embedding>)>, ) -> Result<i64, VectorStoreError>
Trait Implementations§
Source§impl<E: Clone + EmbeddingModel + 'static, T: Clone + SqliteVectorStoreTable + 'static> Clone for SqliteVectorStore<E, T>
impl<E: Clone + EmbeddingModel + 'static, T: Clone + SqliteVectorStoreTable + 'static> Clone for SqliteVectorStore<E, T>
Source§fn clone(&self) -> SqliteVectorStore<E, T>
fn clone(&self) -> SqliteVectorStore<E, T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<E, T> Freeze for SqliteVectorStore<E, T>
impl<E, T> RefUnwindSafe for SqliteVectorStore<E, T>where
E: RefUnwindSafe,
T: RefUnwindSafe,
impl<E, T> Send for SqliteVectorStore<E, T>
impl<E, T> Sync for SqliteVectorStore<E, T>
impl<E, T> Unpin for SqliteVectorStore<E, T>
impl<E, T> UnwindSafe for SqliteVectorStore<E, T>where
E: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more