pub struct HybridRetrievalConfig {
pub alpha: f64,
pub beta: f64,
pub gamma_kind_boost: HashMap<String, f64>,
pub rerank: bool,
pub diversify: bool,
pub diversify_method: String,
pub k_initial: i32,
pub k_final: i32,
pub fusion_dynamic: bool,
}Expand description
Configuration for hybrid retrieval
Fields§
§alpha: f64§beta: f64§gamma_kind_boost: HashMap<String, f64>§rerank: bool§diversify: bool§diversify_method: String§k_initial: i32§k_final: i32§fusion_dynamic: boolImplementations§
Source§impl HybridRetrievalConfig
Hero configuration based on hybrid_splade performance
Note: Gamma boosting disabled by default to match parity artifacts
impl HybridRetrievalConfig
Hero configuration based on hybrid_splade performance Note: Gamma boosting disabled by default to match parity artifacts
pub fn hero() -> Self
Sourcepub fn compute_hash(&self) -> String
pub fn compute_hash(&self) -> String
Compute SHA-256 hash of the configuration for integrity verification
Sourcepub fn validate_hero_config_hash(
&self,
expected_hash: &str,
allow_override: bool,
) -> Result<()>
pub fn validate_hero_config_hash( &self, expected_hash: &str, allow_override: bool, ) -> Result<()>
Validate configuration against expected hash with optional override
Sourcepub fn hero_with_validation(
expected_hash: &str,
allow_override: bool,
) -> Result<Self>
pub fn hero_with_validation( expected_hash: &str, allow_override: bool, ) -> Result<Self>
Create and validate hero configuration against canonical hash
Trait Implementations§
Source§impl Clone for HybridRetrievalConfig
impl Clone for HybridRetrievalConfig
Source§fn clone(&self) -> HybridRetrievalConfig
fn clone(&self) -> HybridRetrievalConfig
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 HybridRetrievalConfig
impl Debug for HybridRetrievalConfig
Source§impl Default for HybridRetrievalConfig
impl Default for HybridRetrievalConfig
Auto Trait Implementations§
impl Freeze for HybridRetrievalConfig
impl RefUnwindSafe for HybridRetrievalConfig
impl Send for HybridRetrievalConfig
impl Sync for HybridRetrievalConfig
impl Unpin for HybridRetrievalConfig
impl UnwindSafe for HybridRetrievalConfig
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