pub struct VectorStoreConfig {
pub enabled: bool,
pub embedding_provider: String,
pub embedding_model: String,
pub storage_path: Option<String>,
pub semantic_search_limit: usize,
pub similarity_threshold: f32,
}Expand description
Vector store configuration
Fields§
§enabled: boolEnable vector store for long-term memory
embedding_provider: StringEmbedding provider (openai, openai-compatible)
embedding_model: StringEmbedding model (e.g., text-embedding-ada-002)
storage_path: Option<String>Storage path (optional, defaults to in-memory)
semantic_search_limit: usizeNumber of top results to retrieve for semantic search
similarity_threshold: f32Similarity threshold for semantic search (0.0 to 1.0)
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<'de> Deserialize<'de> for VectorStoreConfig
impl<'de> Deserialize<'de> for VectorStoreConfig
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 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