pub struct HybridResult {
pub id: String,
pub vector_score: f32,
pub graph_weight: f64,
pub rank_score: f64,
pub metadata: Option<Value>,
}Expand description
A single result from a hybrid graph + vector query.
Fields§
§id: StringID of the matched entity.
vector_score: f32Raw cosine distance from the vector ANN search (lower = more similar).
graph_weight: f64Maximum edge weight along any graph path from the anchor to this node.
0.0 if the node is not reachable from the anchor.
rank_score: f64Final blended rank score: alpha × vec_similarity + (1 − alpha) × graph_weight.
Higher is better.
metadata: Option<Value>Metadata stored alongside the vector, if any.
Trait Implementations§
Source§impl Clone for HybridResult
impl Clone for HybridResult
Source§fn clone(&self) -> HybridResult
fn clone(&self) -> HybridResult
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 HybridResult
impl Debug for HybridResult
Source§impl<'de> Deserialize<'de> for HybridResult
impl<'de> Deserialize<'de> for HybridResult
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 HybridResult
impl RefUnwindSafe for HybridResult
impl Send for HybridResult
impl Sync for HybridResult
impl Unpin for HybridResult
impl UnsafeUnpin for HybridResult
impl UnwindSafe for HybridResult
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