pub struct RetrieveResponse {
pub results: Vec<RetrievalResult>,
pub content: String,
pub confidence: f32,
pub is_sufficient: bool,
pub strategy_used: String,
pub complexity: QueryComplexity,
pub trace: Vec<NavigationStep>,
pub tokens_used: usize,
}Expand description
Complete retrieval response.
Fields§
§results: Vec<RetrievalResult>Retrieved results.
content: StringAggregated content.
confidence: f32Overall confidence score.
is_sufficient: boolWhether information is sufficient.
strategy_used: StringStrategy that was used.
complexity: QueryComplexityDetected query complexity.
trace: Vec<NavigationStep>Search trace for debugging.
tokens_used: usizeTotal tokens used.
Implementations§
Trait Implementations§
Source§impl Clone for RetrieveResponse
impl Clone for RetrieveResponse
Source§fn clone(&self) -> RetrieveResponse
fn clone(&self) -> RetrieveResponse
Returns a duplicate 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 RetrieveResponse
impl Debug for RetrieveResponse
Auto Trait Implementations§
impl Freeze for RetrieveResponse
impl RefUnwindSafe for RetrieveResponse
impl Send for RetrieveResponse
impl Sync for RetrieveResponse
impl Unpin for RetrieveResponse
impl UnsafeUnpin for RetrieveResponse
impl UnwindSafe for RetrieveResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more