pub struct RerankCandidate<'a> {
pub id: MemoryId,
pub content: &'a str,
pub score: f32,
}Expand description
One candidate handed to a reranker: its id, text, and first-pass score.
Fields§
§id: MemoryId§content: &'a str§score: f32Auto Trait Implementations§
impl<'a> Freeze for RerankCandidate<'a>
impl<'a> RefUnwindSafe for RerankCandidate<'a>
impl<'a> Send for RerankCandidate<'a>
impl<'a> Sync for RerankCandidate<'a>
impl<'a> Unpin for RerankCandidate<'a>
impl<'a> UnsafeUnpin for RerankCandidate<'a>
impl<'a> UnwindSafe for RerankCandidate<'a>
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