pub struct TriModalResult {
pub id: String,
pub rank_score: f32,
pub vector_score: Option<f32>,
pub graph_weight: Option<f32>,
pub fts_rank: Option<f32>,
pub metadata: Option<Value>,
}Expand description
A single result from a tri-modal graph + vector + FTS query.
Fields§
§id: StringID of the matched entity.
rank_score: f32Final blended rank score (higher is better).
vector_score: Option<f32>Normalized vector similarity score in [0, 1], if the item appeared in ANN results.
graph_weight: Option<f32>Normalized graph proximity weight in [0, 1], if the item is reachable from the anchor.
fts_rank: Option<f32>Normalized FTS BM25 score in [0, 1], if the item appeared in FTS results.
metadata: Option<Value>Metadata stored alongside the vector, if any.
Trait Implementations§
Source§impl Clone for TriModalResult
impl Clone for TriModalResult
Source§fn clone(&self) -> TriModalResult
fn clone(&self) -> TriModalResult
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 TriModalResult
impl Debug for TriModalResult
Source§impl<'de> Deserialize<'de> for TriModalResult
impl<'de> Deserialize<'de> for TriModalResult
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
Auto Trait Implementations§
impl Freeze for TriModalResult
impl RefUnwindSafe for TriModalResult
impl Send for TriModalResult
impl Sync for TriModalResult
impl Unpin for TriModalResult
impl UnsafeUnpin for TriModalResult
impl UnwindSafe for TriModalResult
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