pub struct TraversalRankingContribution {
pub result_id: String,
pub source: RetrieverSource,
pub rank: usize,
pub score: f64,
pub rrf_contribution: f64,
pub cited: bool,
pub explanation: String,
pub source_scope: Option<String>,
pub source_path: Option<String>,
}Expand description
Per-source ranking contribution retained before final context truncation.
Fields§
§result_id: String§source: RetrieverSource§rank: usize§score: f64§rrf_contribution: f64§cited: bool§explanation: String§source_scope: Option<String>§source_path: Option<String>Trait Implementations§
Source§impl Clone for TraversalRankingContribution
impl Clone for TraversalRankingContribution
Source§fn clone(&self) -> TraversalRankingContribution
fn clone(&self) -> TraversalRankingContribution
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TraversalRankingContribution
impl Debug for TraversalRankingContribution
Source§impl<'de> Deserialize<'de> for TraversalRankingContribution
impl<'de> Deserialize<'de> for TraversalRankingContribution
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for TraversalRankingContribution
Auto Trait Implementations§
impl Freeze for TraversalRankingContribution
impl RefUnwindSafe for TraversalRankingContribution
impl Send for TraversalRankingContribution
impl Sync for TraversalRankingContribution
impl Unpin for TraversalRankingContribution
impl UnsafeUnpin for TraversalRankingContribution
impl UnwindSafe for TraversalRankingContribution
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