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,
}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.
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