pub struct RecallOptions {Show 14 fields
pub k: Option<u32>,
pub as_of: Option<Millis>,
pub known_at: Option<Millis>,
pub history: Option<HistoryMode>,
pub subject: Option<String>,
pub entities: Option<Vec<String>>,
pub filter: Option<Value>,
pub embedding: Option<Vec<f64>>,
pub lexical_weight: Option<f64>,
pub semantic_weight: Option<f64>,
pub min_semantic_score: Option<f64>,
pub fusion: Option<String>,
pub candidate_limit: Option<u32>,
pub explain: bool,
}Fields§
§k: Option<u32>Results to return; the configured default (10) when absent. At most 1000.
as_of: Option<Millis>Evaluate validity and supersession at this time. Absent: the clock’s now.
known_at: Option<Millis>Evaluate what the store knew at this ingest time: later facts and later supersessions are ignored. Absent: everything stored.
history: Option<HistoryMode>Absent: the configured default.
subject: Option<String>Only facts about this subject.
entities: Option<Vec<String>>Only facts mentioning at least one of these entities.
filter: Option<Value>Exact top-level metadata matches, as in document search.
embedding: Option<Vec<f64>>§lexical_weight: Option<f64>§semantic_weight: Option<f64>§min_semantic_score: Option<f64>§fusion: Option<String>"blend" (default) or "rrf", as in document search.
candidate_limit: Option<u32>Eligible candidates ranked before optional recency adjustment; defaults to document search’s.
explain: boolAttach an Explanation to every result. Costs nothing when false.
Trait Implementations§
Source§impl Clone for RecallOptions
impl Clone for RecallOptions
Source§impl Debug for RecallOptions
impl Debug for RecallOptions
Source§impl Default for RecallOptions
impl Default for RecallOptions
Source§impl<'de> Deserialize<'de> for RecallOptionswhere
RecallOptions: Default,
impl<'de> Deserialize<'de> for RecallOptionswhere
RecallOptions: Default,
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
Auto Trait Implementations§
impl Freeze for RecallOptions
impl RefUnwindSafe for RecallOptions
impl Send for RecallOptions
impl Sync for RecallOptions
impl Unpin for RecallOptions
impl UnsafeUnpin for RecallOptions
impl UnwindSafe for RecallOptions
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.