pub struct SearchOptions {
pub limit: usize,
pub kind: Option<String>,
pub path_contains: Option<String>,
pub session_id: Option<String>,
pub min_confidence: Option<f64>,
}Fields§
§limit: usize§kind: Option<String>Exact match on the source kind column (e.g. text/markdown,
application/jsonl). Useful for narrowing a query to a single
format without writing SQL.
path_contains: Option<String>Substring that must appear in the source path or uri.
session_id: Option<String>Exact match on chunks.session_id. Restricts results to a single
session so a caller can ask “what’s relevant in this session?”
without inferring relationships across sessions.
min_confidence: Option<f64>Drop hits whose blended [compute_confidence] score is below this
threshold. Applied after ranking and just before access-metadata
bumping, so filtered-out chunks do not count as retrievals. None
is the pre-filter default and leaves every ranked hit intact.
Trait Implementations§
Source§impl Clone for SearchOptions
impl Clone for SearchOptions
Source§fn clone(&self) -> SearchOptions
fn clone(&self) -> SearchOptions
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 moreSource§impl Debug for SearchOptions
impl Debug for SearchOptions
Auto Trait Implementations§
impl Freeze for SearchOptions
impl RefUnwindSafe for SearchOptions
impl Send for SearchOptions
impl Sync for SearchOptions
impl Unpin for SearchOptions
impl UnsafeUnpin for SearchOptions
impl UnwindSafe for SearchOptions
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