pub struct MemoryQuery<'q> {
pub namespace: &'q str,
pub text: &'q str,
pub k: usize,
pub min_score: f64,
}Expand description
A semantic recall query against one namespace.
Fields§
§namespace: &'q strNamespace to search (isolated from every other namespace).
text: &'q strQuery text.
k: usizeMaximum hits to return.
min_score: f64Hits scoring below this are dropped.
Implementations§
Trait Implementations§
Source§impl<'q> Clone for MemoryQuery<'q>
impl<'q> Clone for MemoryQuery<'q>
Source§fn clone(&self) -> MemoryQuery<'q>
fn clone(&self) -> MemoryQuery<'q>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'q> Freeze for MemoryQuery<'q>
impl<'q> RefUnwindSafe for MemoryQuery<'q>
impl<'q> Send for MemoryQuery<'q>
impl<'q> Sync for MemoryQuery<'q>
impl<'q> Unpin for MemoryQuery<'q>
impl<'q> UnsafeUnpin for MemoryQuery<'q>
impl<'q> UnwindSafe for MemoryQuery<'q>
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