pub struct RetrieverConfig {
pub storage_mode: StorageMode,
pub default_threshold: f32,
pub max_results: usize,
}Expand description
Retriever configuration
Fields§
§storage_mode: StorageModeWhether to store documents, chunks, or both
default_threshold: f32Default similarity threshold
max_results: usizeMaximum results to return
Trait Implementations§
Source§impl Clone for RetrieverConfig
impl Clone for RetrieverConfig
Source§fn clone(&self) -> RetrieverConfig
fn clone(&self) -> RetrieverConfig
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 RetrieverConfig
impl Debug for RetrieverConfig
Auto Trait Implementations§
impl Freeze for RetrieverConfig
impl RefUnwindSafe for RetrieverConfig
impl Send for RetrieverConfig
impl Sync for RetrieverConfig
impl Unpin for RetrieverConfig
impl UnwindSafe for RetrieverConfig
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