#[repr(C)]pub struct VectorStoreConfig {
pub dimensions: u32,
pub capacity: u32,
pub hnsw_m: u16,
pub hnsw_ef_construction: u16,
pub use_quantization: bool,
}Expand description
Configuration for creating a kernel vector store.
Fields§
§dimensions: u32Number of dimensions per vector.
capacity: u32Maximum number of vectors the store can hold.
hnsw_m: u16HNSW M parameter (number of bidirectional links per node).
hnsw_ef_construction: u16HNSW ef_construction parameter.
use_quantization: boolWhether to use quantization (reduces memory, slightly reduces accuracy).
Implementations§
Trait Implementations§
Source§impl Clone for VectorStoreConfig
impl Clone for VectorStoreConfig
Source§fn clone(&self) -> VectorStoreConfig
fn clone(&self) -> VectorStoreConfig
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 moreSource§impl Debug for VectorStoreConfig
impl Debug for VectorStoreConfig
Source§impl Default for VectorStoreConfig
impl Default for VectorStoreConfig
Source§impl PartialEq for VectorStoreConfig
impl PartialEq for VectorStoreConfig
impl Copy for VectorStoreConfig
impl Eq for VectorStoreConfig
impl StructuralPartialEq for VectorStoreConfig
Auto Trait Implementations§
impl Freeze for VectorStoreConfig
impl RefUnwindSafe for VectorStoreConfig
impl Send for VectorStoreConfig
impl Sync for VectorStoreConfig
impl Unpin for VectorStoreConfig
impl UnsafeUnpin for VectorStoreConfig
impl UnwindSafe for VectorStoreConfig
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