pub struct StructuralScore {
pub label_sim: f32,
pub dep_sim: f32,
pub assignee_sim: f32,
pub parent_sim: f32,
pub graph_proximity: f32,
}Expand description
Per-feature structural similarity breakdown between two items.
All scores are in [0.0, 1.0] range. The individual fields are kept
separate so downstream consumers (e.g. RRF fusion) can weight them
independently and show per-feature explanations to users.
Fields§
§label_sim: f32Jaccard similarity of the two items’ label sets.
dep_sim: f32Jaccard similarity of direct dependency-neighbour sets (union of out-neighbours and in-neighbours in the graph).
assignee_sim: f32Jaccard similarity of assignee/agent sets.
parent_sim: f321.0 if both items share the same non-null parent goal, 0.0
otherwise. Could be extended to graded parent-chain overlap.
graph_proximity: f32Graph proximity: 1.0 / (1.0 + shortest_path_distance) using an
undirected BFS up to [MAX_HOPS] hops. Items unreachable within
the hop limit, or not present in the graph, score 0.0.
Implementations§
Trait Implementations§
Source§impl Clone for StructuralScore
impl Clone for StructuralScore
Source§fn clone(&self) -> StructuralScore
fn clone(&self) -> StructuralScore
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more