pub struct SearchQuery {
pub embedding: Vec<f32>,
pub text: Option<String>,
pub limit: usize,
pub filters: Vec<SearchFilter>,
pub metric: DistanceMetric,
pub scope_prefix: Option<String>,
}Expand description
A search query.
Fields§
§embedding: Vec<f32>Query embedding
text: Option<String>Optional text for hybrid search
limit: usizeMaximum results to return
filters: Vec<SearchFilter>Search filters
metric: DistanceMetricDistance metric
scope_prefix: Option<String>Optional directory scope, relative to the index root.
When set, only chunks whose dir_path is this directory or a
subdirectory are considered. Applied as a filter alongside ANN.
Trait Implementations§
Source§impl Clone for SearchQuery
impl Clone for SearchQuery
Auto Trait Implementations§
impl Freeze for SearchQuery
impl RefUnwindSafe for SearchQuery
impl Send for SearchQuery
impl Sync for SearchQuery
impl Unpin for SearchQuery
impl UnsafeUnpin for SearchQuery
impl UnwindSafe for SearchQuery
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