pub struct SemanticHit {
pub doc_path: String,
pub chunk_sequence: u32,
pub relevance_score: f32,
pub chunk_text: String,
pub chunk_hash: [u8; 32],
}Expand description
A single hit from semantic search — a ranked chunk with its score and content.
Fields§
§doc_path: StringSource document path
chunk_sequence: u32Chunk sequence number within the document
relevance_score: f32Hybrid relevance score (0.0-1.0) — how relevant the substrate ranked this chunk
chunk_text: StringFull chunk text — exactly what the AI would see as context
chunk_hash: [u8; 32]BLAKE3 hash of the chunk text
Trait Implementations§
Source§impl Clone for SemanticHit
impl Clone for SemanticHit
Source§fn clone(&self) -> SemanticHit
fn clone(&self) -> SemanticHit
Returns a duplicate of the value. Read more
1.0.0 · 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 SemanticHit
impl Debug for SemanticHit
Source§impl<'de> Deserialize<'de> for SemanticHit
impl<'de> Deserialize<'de> for SemanticHit
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 SemanticHit
impl RefUnwindSafe for SemanticHit
impl Send for SemanticHit
impl Sync for SemanticHit
impl Unpin for SemanticHit
impl UnsafeUnpin for SemanticHit
impl UnwindSafe for SemanticHit
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