pub struct HybridSearchResponse {
pub query: String,
pub k: usize,
pub rrf_k: u32,
pub weights: Weights,
pub results: Vec<HybridSearchItem>,
pub graph_matches: Vec<RecallItem>,
pub elapsed_ms: u64,
}Fields§
§query: String§k: usize§rrf_k: u32Parâmetro k do RRF usado no ranking combinado.
weights: WeightsPesos aplicados às fontes vec e fts no RRF.
results: Vec<HybridSearchItem>§graph_matches: Vec<RecallItem>§elapsed_ms: u64Tempo total de execução em milissegundos desde início do handler até serialização.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HybridSearchResponse
impl RefUnwindSafe for HybridSearchResponse
impl Send for HybridSearchResponse
impl Sync for HybridSearchResponse
impl Unpin for HybridSearchResponse
impl UnsafeUnpin for HybridSearchResponse
impl UnwindSafe for HybridSearchResponse
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> 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