pub struct RerankerConfig {
pub apply_source_weights: bool,
}Expand description
Reranker runtime configuration.
v0 callers can stay with the legacy rerank API (no source awareness).
v1+ callers use rerank_with_config with apply_source_weights = true
so the final RRF score respects provenance per Retrieval v2 Tier 1.
Fields§
§apply_source_weights: boolWhen true, multiply the final fused score by the source-weight for each
candidate. When false, behaviour is identical to the v0 rerank fn.
Trait Implementations§
Source§impl Clone for RerankerConfig
impl Clone for RerankerConfig
Source§fn clone(&self) -> RerankerConfig
fn clone(&self) -> RerankerConfig
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 RerankerConfig
impl Debug for RerankerConfig
Source§impl Default for RerankerConfig
impl Default for RerankerConfig
Source§fn default() -> RerankerConfig
fn default() -> RerankerConfig
Defaults to v0-compatible behaviour (apply_source_weights = false) so
pre-v1 callers can bump the core version without ranking drift.
Source§impl<'de> Deserialize<'de> for RerankerConfig
impl<'de> Deserialize<'de> for RerankerConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RerankerConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RerankerConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RerankerConfig
impl PartialEq for RerankerConfig
Source§impl Serialize for RerankerConfig
impl Serialize for RerankerConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for RerankerConfig
impl StructuralPartialEq for RerankerConfig
Auto Trait Implementations§
impl Freeze for RerankerConfig
impl RefUnwindSafe for RerankerConfig
impl Send for RerankerConfig
impl Sync for RerankerConfig
impl Unpin for RerankerConfig
impl UnsafeUnpin for RerankerConfig
impl UnwindSafe for RerankerConfig
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