pub struct RagScoredPoint {
pub source: String,
pub score: f32,
}Available on crate feature
rag only.Fields§
§source: StringSource of the context
score: f32Points vector distance to the query vector
Trait Implementations§
Source§impl Clone for RagScoredPoint
impl Clone for RagScoredPoint
Source§fn clone(&self) -> RagScoredPoint
fn clone(&self) -> RagScoredPoint
Returns a copy 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 RagScoredPoint
impl Debug for RagScoredPoint
Source§impl<'de> Deserialize<'de> for RagScoredPoint
impl<'de> Deserialize<'de> for RagScoredPoint
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 RagScoredPoint
impl RefUnwindSafe for RagScoredPoint
impl Send for RagScoredPoint
impl Sync for RagScoredPoint
impl Unpin for RagScoredPoint
impl UnwindSafe for RagScoredPoint
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