pub struct VectorConfig {
pub backend: VectorBackendKind,
pub hnsw: Option<VectorHnswConfig>,
pub diskann: Option<VectorDiskAnnConfig>,
pub hybrid: Option<VectorHybridConfig>,
}Expand description
Unified vector search backend configuration.
Controls which backend is used for the ECC cognitive substrate’s vector search layer.
§Example TOML
[kernel.vector]
backend = "hybrid"
[kernel.vector.hnsw]
ef_construction = 200
max_elements = 100000
[kernel.vector.diskann]
max_points = 10000000
data_path = ".weftos/diskann"
[kernel.vector.hybrid]
hot_capacity = 50000
promotion_threshold = 3Fields§
§backend: VectorBackendKindWhich backend to use.
hnsw: Option<VectorHnswConfig>HNSW-specific settings.
diskann: Option<VectorDiskAnnConfig>DiskANN-specific settings.
hybrid: Option<VectorHybridConfig>Hybrid-specific settings.
Trait Implementations§
Source§impl Clone for VectorConfig
impl Clone for VectorConfig
Source§fn clone(&self) -> VectorConfig
fn clone(&self) -> VectorConfig
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 VectorConfig
impl Debug for VectorConfig
Source§impl Default for VectorConfig
impl Default for VectorConfig
Source§impl<'de> Deserialize<'de> for VectorConfig
impl<'de> Deserialize<'de> for VectorConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for VectorConfig
impl RefUnwindSafe for VectorConfig
impl Send for VectorConfig
impl Sync for VectorConfig
impl Unpin for VectorConfig
impl UnsafeUnpin for VectorConfig
impl UnwindSafe for VectorConfig
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