pub struct RagMatch {
pub block_id: BlockId,
pub similarity: f32,
pub content_preview: Option<String>,
pub semantic_role: Option<String>,
pub highlight_spans: Vec<(usize, usize)>,
}Expand description
A single match from semantic search.
Fields§
§block_id: BlockIdBlock ID of the match.
similarity: f32Similarity score (0.0 - 1.0).
content_preview: Option<String>Content preview (if requested).
semantic_role: Option<String>Semantic role (if available).
highlight_spans: Vec<(usize, usize)>Highlight spans in content (character ranges).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RagMatch
impl<'de> Deserialize<'de> for RagMatch
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 RagMatch
impl RefUnwindSafe for RagMatch
impl Send for RagMatch
impl Sync for RagMatch
impl Unpin for RagMatch
impl UnwindSafe for RagMatch
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