pub struct RagResult {
pub source_uri: String,
pub source_name: String,
pub text: String,
pub score: f64,
pub distance: f64,
}Expand description
A single result from RAG search.
Fields§
§source_uri: StringSource document URI.
source_name: StringDisplay name of the source.
text: StringMatching text chunk.
score: f64Relevance score.
distance: f64Vector distance (lower is more similar).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RagResult
impl<'de> Deserialize<'de> for RagResult
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 RagResult
impl RefUnwindSafe for RagResult
impl Send for RagResult
impl Sync for RagResult
impl Unpin for RagResult
impl UnsafeUnpin for RagResult
impl UnwindSafe for RagResult
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