pub struct IndexConfig {
pub signature_weight: f32,
pub semantic_weight: f32,
pub example_weight: f32,
}Expand description
Configuration for search result fusion weights.
Fields§
§signature_weight: f32Weight for type signature similarity (default: 0.3).
semantic_weight: f32Weight for description similarity (default: 0.5).
example_weight: f32Weight for example similarity (default: 0.2).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IndexConfig
impl RefUnwindSafe for IndexConfig
impl Send for IndexConfig
impl Sync for IndexConfig
impl Unpin for IndexConfig
impl UnsafeUnpin for IndexConfig
impl UnwindSafe for IndexConfig
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