pub struct GraphRetrievalConfig {
pub enable_query_expansion: bool,
pub enable_pagerank_scoring: bool,
pub enable_path_based_retrieval: bool,
pub graph_weight: f32,
pub similarity_weight: f32,
pub max_graph_hops: usize,
pub min_graph_score: f32,
pub expansion_options: ExpansionOptions,
pub pagerank_config: PageRankConfig,
pub enable_diversification: bool,
pub diversification_factor: f32,
}Expand description
Graph retrieval configuration
Fields§
§enable_query_expansion: boolEnable query expansion
enable_pagerank_scoring: boolEnable PageRank scoring
enable_path_based_retrieval: boolEnable path-based retrieval
graph_weight: f32Weight for graph-based scores vs traditional similarity
similarity_weight: f32Weight for traditional similarity scores
max_graph_hops: usizeMaximum number of graph hops for retrieval
min_graph_score: f32Minimum graph score threshold
expansion_options: ExpansionOptionsQuery expansion configuration
pagerank_config: PageRankConfigPageRank configuration
enable_diversification: boolEnable result diversification
diversification_factor: f32Diversification factor (0.0 to 1.0)
Trait Implementations§
Source§impl Clone for GraphRetrievalConfig
impl Clone for GraphRetrievalConfig
Source§fn clone(&self) -> GraphRetrievalConfig
fn clone(&self) -> GraphRetrievalConfig
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 GraphRetrievalConfig
impl Debug for GraphRetrievalConfig
Auto Trait Implementations§
impl Freeze for GraphRetrievalConfig
impl RefUnwindSafe for GraphRetrievalConfig
impl Send for GraphRetrievalConfig
impl Sync for GraphRetrievalConfig
impl Unpin for GraphRetrievalConfig
impl UnwindSafe for GraphRetrievalConfig
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