pub struct FederatedGraphRAGConfig {
pub endpoints: Vec<EndpointConfig>,
pub global_timeout_ms: u64,
pub max_concurrency: usize,
pub same_as_max_depth: usize,
pub min_endpoint_priority: f64,
pub partial_results_ok: bool,
pub retry_count: usize,
pub retry_delay_ms: u64,
}Expand description
Top-level configuration for federated GraphRAG
Fields§
§endpoints: Vec<EndpointConfig>List of remote endpoints to query
global_timeout_ms: u64Global query timeout in milliseconds
max_concurrency: usizeMaximum concurrent endpoint requests
same_as_max_depth: usizeMaximum transitive sameAs hops to follow
min_endpoint_priority: f64Minimum endpoint priority to include in a query (0.0 = include all)
partial_results_ok: boolWhether to continue when some endpoints fail
retry_count: usizeRetry count for failed endpoint requests
retry_delay_ms: u64Delay between retries in milliseconds
Implementations§
Source§impl FederatedGraphRAGConfig
impl FederatedGraphRAGConfig
Sourcepub fn validate(&self) -> Result<(), DistributedError>
pub fn validate(&self) -> Result<(), DistributedError>
Validate configuration and return an error description if invalid.
Sourcepub fn active_endpoints(&self) -> Vec<&EndpointConfig>
pub fn active_endpoints(&self) -> Vec<&EndpointConfig>
Return only enabled endpoints with priority >= min_endpoint_priority.
Trait Implementations§
Source§impl Clone for FederatedGraphRAGConfig
impl Clone for FederatedGraphRAGConfig
Source§fn clone(&self) -> FederatedGraphRAGConfig
fn clone(&self) -> FederatedGraphRAGConfig
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 FederatedGraphRAGConfig
impl Debug for FederatedGraphRAGConfig
Source§impl Default for FederatedGraphRAGConfig
impl Default for FederatedGraphRAGConfig
Source§impl<'de> Deserialize<'de> for FederatedGraphRAGConfig
impl<'de> Deserialize<'de> for FederatedGraphRAGConfig
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 FederatedGraphRAGConfig
impl RefUnwindSafe for FederatedGraphRAGConfig
impl Send for FederatedGraphRAGConfig
impl Sync for FederatedGraphRAGConfig
impl Unpin for FederatedGraphRAGConfig
impl UnsafeUnpin for FederatedGraphRAGConfig
impl UnwindSafe for FederatedGraphRAGConfig
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 more