pub struct MemoryConfig {
pub embedder: EmbedderConfig,
pub vector_store: VectorStoreConfig,
pub llm: Option<LLMConfig>,
pub history_db_path: Option<PathBuf>,
pub custom_prompts: Option<CustomPrompts>,
pub reranker: Option<RerankerConfig>,
pub version: String,
pub collection_name: String,
}Expand description
Main configuration for the Memory system
Fields§
§embedder: EmbedderConfigEmbedding provider configuration
vector_store: VectorStoreConfigVector store backend configuration
llm: Option<LLMConfig>LLM provider configuration (optional - for inference mode)
history_db_path: Option<PathBuf>Path to SQLite database for history tracking
custom_prompts: Option<CustomPrompts>Custom prompts for fact extraction
reranker: Option<RerankerConfig>Reranker configuration
version: StringAPI version
collection_name: StringCollection/index name for vector store
Trait Implementations§
Source§impl Clone for MemoryConfig
impl Clone for MemoryConfig
Source§fn clone(&self) -> MemoryConfig
fn clone(&self) -> MemoryConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MemoryConfig
impl Debug for MemoryConfig
Source§impl Default for MemoryConfig
impl Default for MemoryConfig
Source§impl<'de> Deserialize<'de> for MemoryConfig
impl<'de> Deserialize<'de> for MemoryConfig
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 MemoryConfig
impl RefUnwindSafe for MemoryConfig
impl Send for MemoryConfig
impl Sync for MemoryConfig
impl Unpin for MemoryConfig
impl UnwindSafe for MemoryConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)