pub struct FactSearchConfig {
pub lexical_pool: usize,
pub semantic_pool: usize,
pub semantic_min_cosine: f32,
pub rrf_k: f32,
pub related_max: usize,
pub related_pool: usize,
}Expand description
Tunables for crate::stores::FactStore::search_facts.
Fields§
§lexical_pool: usizeUnpinned lexical hits nominated to the pool.
semantic_pool: usizeSemantic hits nominated to the pool.
semantic_min_cosine: f32Cosine at or below which a semantic hit is not nominated.
rrf_k: f32Reciprocal rank fusion constant.
Most related facts returned beside the hits.
Most expansion-eligible facts scored against the query.
Trait Implementations§
Source§impl Clone for FactSearchConfig
impl Clone for FactSearchConfig
Source§impl Debug for FactSearchConfig
impl Debug for FactSearchConfig
Source§impl Default for FactSearchConfig
impl Default for FactSearchConfig
Source§impl PartialEq for FactSearchConfig
impl PartialEq for FactSearchConfig
impl StructuralPartialEq for FactSearchConfig
Auto Trait Implementations§
impl Forget for FactSearchConfig
impl Freeze for FactSearchConfig
impl Move for FactSearchConfig
impl RefUnwindSafe for FactSearchConfig
impl Send for FactSearchConfig
impl Sync for FactSearchConfig
impl Unpin for FactSearchConfig
impl UnsafeUnpin for FactSearchConfig
impl UnwindSafe for FactSearchConfig
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