pub struct VectorStore { /* private fields */ }Expand description
Vector store for dense retrieval
Implementations§
Source§impl VectorStore
impl VectorStore
Sourcepub fn new(config: VectorStoreConfig) -> VectorStore
pub fn new(config: VectorStoreConfig) -> VectorStore
Create a new vector store
Sourcepub fn with_dimension(dimension: usize) -> VectorStore
pub fn with_dimension(dimension: usize) -> VectorStore
Create with default configuration
Sourcepub fn config(&self) -> &VectorStoreConfig
pub fn config(&self) -> &VectorStoreConfig
Get the configuration
Trait Implementations§
Source§impl Clone for VectorStore
impl Clone for VectorStore
Source§fn clone(&self) -> VectorStore
fn clone(&self) -> VectorStore
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 Freeze for VectorStore
impl RefUnwindSafe for VectorStore
impl Send for VectorStore
impl Sync for VectorStore
impl Unpin for VectorStore
impl UnsafeUnpin for VectorStore
impl UnwindSafe for VectorStore
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