pub struct Explanation {
pub sources: Vec<SourceContribution>,
pub method: &'static str,
pub consensus_score: f32,
}Expand description
Explanation of how a fused score was computed.
Fields§
§sources: Vec<SourceContribution>Contributions from each retriever that contained this document.
method: &'static strFusion method used (e.g., “rrf”, “combsum”).
consensus_score: f32Consensus score: fraction of retrievers that contained this document (0.0-1.0).
- 1.0 = document appeared in all retrievers (strong consensus)
- 0.5 = document appeared in half of retrievers
- < 0.3 = document appeared in few retrievers (outlier)
Trait Implementations§
Source§impl Clone for Explanation
impl Clone for Explanation
Source§fn clone(&self) -> Explanation
fn clone(&self) -> Explanation
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 Explanation
impl Debug for Explanation
Source§impl Deserialize<'static> for Explanation
impl Deserialize<'static> for Explanation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Explanation
impl PartialEq for Explanation
Source§impl Serialize for Explanation
impl Serialize for Explanation
impl StructuralPartialEq for Explanation
Auto Trait Implementations§
impl Freeze for Explanation
impl RefUnwindSafe for Explanation
impl Send for Explanation
impl Sync for Explanation
impl Unpin for Explanation
impl UnsafeUnpin for Explanation
impl UnwindSafe for Explanation
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