pub struct GraphConfig {Show 15 fields
pub enabled: bool,
pub extract_model: String,
pub max_entities_per_message: usize,
pub max_edges_per_message: usize,
pub community_refresh_interval: usize,
pub entity_similarity_threshold: f32,
pub extraction_timeout_secs: u64,
pub use_embedding_resolution: bool,
pub entity_ambiguous_threshold: f32,
pub max_hops: u32,
pub recall_limit: usize,
pub expired_edge_retention_days: u32,
pub max_entities: usize,
pub community_summary_max_prompt_bytes: usize,
pub community_summary_concurrency: usize,
}Expand description
Configuration for the knowledge graph memory subsystem ([memory.graph] TOML section).
§Security
Entity names, relation labels, and fact strings extracted by the LLM are stored verbatim without PII redaction. This is a known pre-1.0 MVP limitation. Do not enable graph memory when processing conversations that may contain personal, medical, or sensitive data until a redaction pass is implemented on the write path.
Fields§
§enabled: bool§extract_model: String§max_entities_per_message: usize§max_edges_per_message: usize§community_refresh_interval: usize§entity_similarity_threshold: f32§extraction_timeout_secs: u64§use_embedding_resolution: bool§entity_ambiguous_threshold: f32§max_hops: u32§recall_limit: usize§expired_edge_retention_days: u32Days to retain expired (superseded) edges before deletion. Default: 90.
max_entities: usizeMaximum entities to retain in the graph. 0 = unlimited.
community_summary_max_prompt_bytes: usizeMaximum prompt size in bytes for community summary generation. Default: 8192.
community_summary_concurrency: usizeMaximum concurrent LLM calls during community summarization. Default: 4.
Trait Implementations§
Source§impl Clone for GraphConfig
impl Clone for GraphConfig
Source§fn clone(&self) -> GraphConfig
fn clone(&self) -> GraphConfig
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 GraphConfig
impl Debug for GraphConfig
Source§impl Default for GraphConfig
impl Default for GraphConfig
Source§impl<'de> Deserialize<'de> for GraphConfigwhere
GraphConfig: Default,
impl<'de> Deserialize<'de> for GraphConfigwhere
GraphConfig: Default,
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 GraphConfig
impl RefUnwindSafe for GraphConfig
impl Send for GraphConfig
impl Sync for GraphConfig
impl Unpin for GraphConfig
impl UnsafeUnpin for GraphConfig
impl UnwindSafe for GraphConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request