pub struct SearchConfig {
pub short_threshold: usize,
pub long_threshold: usize,
pub min_score: f32,
pub keyword_weight: f32,
pub semantic_weight: f32,
pub rrf_k: f32,
pub project_context_boost: f32,
pub project_context_path: Option<String>,
pub dedupe_strategy: DedupeStrategy,
}Expand description
Configuration for search thresholds
Fields§
§short_threshold: usizeWord count threshold for short queries (keyword-only)
long_threshold: usizeWord count threshold for long queries (semantic-only)
min_score: f32Minimum score to include in results
keyword_weight: f32Weight for keyword score in hybrid search
semantic_weight: f32Weight for semantic score in hybrid search
rrf_k: f32RRF constant (k parameter, default: 60) Higher values favor lower-ranked results, lower values favor top results
project_context_boost: f32Boost factor for project context memories when metadata.project_path matches cwd
project_context_path: Option<String>Current working directory for project context matching
dedupe_strategy: DedupeStrategyDeduplication strategy for hybrid search
Trait Implementations§
Source§impl Clone for SearchConfig
impl Clone for SearchConfig
Source§fn clone(&self) -> SearchConfig
fn clone(&self) -> SearchConfig
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 SearchConfig
impl Debug for SearchConfig
Auto Trait Implementations§
impl Freeze for SearchConfig
impl RefUnwindSafe for SearchConfig
impl Send for SearchConfig
impl Sync for SearchConfig
impl Unpin for SearchConfig
impl UnwindSafe for SearchConfig
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 moreCreates a shared type from an unshared type.