pub struct RagResult {
pub chunks: Vec<ScoredChunk>,
pub context_text: String,
pub total_chunks_searched: usize,
pub query_time_ms: u64,
}Expand description
Result of a RAG query.
Fields§
§chunks: Vec<ScoredChunk>Scored chunks ordered by relevance.
context_text: StringPre-formatted context text ready for LLM injection.
total_chunks_searched: usizeTotal number of chunks that were searched.
query_time_ms: u64Wall-clock time in milliseconds for the query.
Trait Implementations§
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