pub struct ScoredChunk {
pub chunk: DocumentChunk,
pub score: f32,
pub document_title: String,
pub source: String,
}Expand description
A scored chunk returned by the RAG query.
Fields§
§chunk: DocumentChunkThe document chunk.
score: f32Relevance score (higher is better).
document_title: StringTitle of the parent document.
source: StringSource of the parent document.
Trait Implementations§
Source§impl Clone for ScoredChunk
impl Clone for ScoredChunk
Source§fn clone(&self) -> ScoredChunk
fn clone(&self) -> ScoredChunk
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ScoredChunk
impl RefUnwindSafe for ScoredChunk
impl Send for ScoredChunk
impl Sync for ScoredChunk
impl Unpin for ScoredChunk
impl UnsafeUnpin for ScoredChunk
impl UnwindSafe for ScoredChunk
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