pub struct LtmConfig {
pub max_entities: usize,
pub max_links: usize,
pub max_memory_bytes: usize,
pub enable_embeddings: bool,
pub embedding_dim: usize,
}Expand description
Configuration for the Long-Term Memory (LTM).
Fields§
§max_entities: usizeThe maximum number of entities the LTM knowledge graph can hold.
max_links: usizeThe maximum number of links between entities in the knowledge graph.
max_memory_bytes: usizeThe approximate maximum memory usage in bytes for the LTM.
enable_embeddings: boolWhether to generate and store embedding vectors for semantic search. Disabling this saves memory but limits recall to keyword/tag matching.
embedding_dim: usizeThe dimensionality of the embedding vectors (e.g., 64, 128, 256). Higher dimensions can capture more semantic detail but use more memory.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LtmConfig
impl<'de> Deserialize<'de> for LtmConfig
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 LtmConfig
impl RefUnwindSafe for LtmConfig
impl Send for LtmConfig
impl Sync for LtmConfig
impl Unpin for LtmConfig
impl UnsafeUnpin for LtmConfig
impl UnwindSafe for LtmConfig
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