pub struct VectorHit {
pub id: String,
pub content: String,
pub source: SearchSource,
pub similarity: f64,
pub updated_at: Option<String>,
pub source_rank: Option<usize>,
pub source_similarity: Option<f64>,
pub reranked_from_f32: bool,
pub temporal_weight: Option<f64>,
pub provenance_confidence: Option<f64>,
}Expand description
A vector search hit.
Fields§
§id: StringSearch item key such as fact:{uuid} or episode:{episode_id}.
content: StringText content returned to callers.
source: SearchSourceSource info.
similarity: f64Final similarity used for vector ranking.
updated_at: Option<String>Timestamp used for recency scoring.
source_rank: Option<usize>Rank from the underlying retrieval stage before exact reranking.
source_similarity: Option<f64>Similarity from the underlying retrieval stage before exact reranking.
reranked_from_f32: boolWhether exact f32 reranking changed or confirmed this candidate ordering.
temporal_weight: Option<f64>Temporal weight for stale-fact downranking (0.0-1.0, default 1.0).
provenance_confidence: Option<f64>Provenance confidence (0.0-1.0, default 0.5).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VectorHit
impl RefUnwindSafe for VectorHit
impl Send for VectorHit
impl Sync for VectorHit
impl Unpin for VectorHit
impl UnsafeUnpin for VectorHit
impl UnwindSafe for VectorHit
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