pub struct ReasoningIndexConfig {
pub enabled: bool,
pub hot_node_threshold: u32,
pub max_topic_entries: usize,
pub max_keyword_entries: usize,
pub min_keyword_length: usize,
pub build_summary_shortcut: bool,
pub enable_synonym_expansion: bool,
}Expand description
Configuration for building and using the reasoning index.
Fields§
§enabled: boolWhether reasoning index building is enabled.
hot_node_threshold: u32Minimum hit count for a node to be considered “hot”.
max_topic_entries: usizeMaximum number of topic entries per keyword.
max_keyword_entries: usizeMaximum number of keyword-to-node mappings to keep.
min_keyword_length: usizeMinimum keyword length to index.
build_summary_shortcut: boolWhether to build the summary shortcut.
enable_synonym_expansion: boolWhether to expand keywords with LLM-generated synonyms. When enabled, the indexing stage calls the LLM to generate synonym terms for each keyword, improving recall for queries that use different wording than the document.
Implementations§
Source§impl ReasoningIndexConfig
impl ReasoningIndexConfig
Sourcepub fn with_hot_threshold(self, threshold: u32) -> Self
pub fn with_hot_threshold(self, threshold: u32) -> Self
Set the hot node threshold.
Sourcepub fn with_summary_shortcut(self, build: bool) -> Self
pub fn with_summary_shortcut(self, build: bool) -> Self
Set whether to build the summary shortcut.
Sourcepub fn with_synonym_expansion(self, enable: bool) -> Self
pub fn with_synonym_expansion(self, enable: bool) -> Self
Enable or disable synonym expansion.
Trait Implementations§
Source§impl Clone for ReasoningIndexConfig
impl Clone for ReasoningIndexConfig
Source§fn clone(&self) -> ReasoningIndexConfig
fn clone(&self) -> ReasoningIndexConfig
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 ReasoningIndexConfig
impl Debug for ReasoningIndexConfig
Source§impl Default for ReasoningIndexConfig
impl Default for ReasoningIndexConfig
Source§impl<'de> Deserialize<'de> for ReasoningIndexConfig
impl<'de> Deserialize<'de> for ReasoningIndexConfig
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 ReasoningIndexConfig
impl RefUnwindSafe for ReasoningIndexConfig
impl Send for ReasoningIndexConfig
impl Sync for ReasoningIndexConfig
impl Unpin for ReasoningIndexConfig
impl UnsafeUnpin for ReasoningIndexConfig
impl UnwindSafe for ReasoningIndexConfig
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