pub struct RecallQuery {
pub subject_hints: String,
pub limit: u32,
pub links_weight: f64,
pub synonyms: Vec<Vec<String>>,
pub search_max_df: f64,
pub search_quorum: f64,
pub search_retry_quorum: f64,
pub search_quorum_over: QuorumUnit,
pub alias_min_sim: f64,
pub max_subjects: u32,
}Expand description
What a recall looks for and how wide each tier may reach.
Subject hints come from the last user turn; each tier has its own row
limit; a one-hop link match earns links_weight relative to a direct
subject match; the synonym groups expand each full-text query word.
Fields§
§subject_hints: String§limit: u32§links_weight: f64§synonyms: Vec<Vec<String>>§search_max_df: f64§search_quorum: f64§search_retry_quorum: f64§search_quorum_over: QuorumUnit§alias_min_sim: f64§max_subjects: u32Implementations§
Source§impl RecallQuery
impl RecallQuery
pub const fn new(subject_hints: String, limit: u32) -> Self
pub const fn default_alias_min_sim() -> f64
pub const fn default_max_subjects() -> u32
Trait Implementations§
Source§impl Clone for RecallQuery
impl Clone for RecallQuery
Source§impl Debug for RecallQuery
impl Debug for RecallQuery
Source§impl<'de> Deserialize<'de> for RecallQuery
impl<'de> Deserialize<'de> for RecallQuery
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
Source§impl PartialEq for RecallQuery
impl PartialEq for RecallQuery
Source§impl Serialize for RecallQuery
impl Serialize for RecallQuery
impl StructuralPartialEq for RecallQuery
Auto Trait Implementations§
impl Freeze for RecallQuery
impl RefUnwindSafe for RecallQuery
impl Send for RecallQuery
impl Sync for RecallQuery
impl Unpin for RecallQuery
impl UnsafeUnpin for RecallQuery
impl UnwindSafe for RecallQuery
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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