pub enum QueryStep {
Search {
query: String,
limit: usize,
},
VectorSearch {
query: String,
limit: usize,
},
TextSearch {
query: TextQuery,
limit: usize,
},
Traverse {
direction: TraverseDirection,
label: String,
max_depth: usize,
filter: Option<Predicate>,
},
Filter(Predicate),
}Expand description
A single step in the query pipeline.
Variants§
Search
Unified adaptive retrieval entry step consumed by the Phase 12 retrieval planner.
Carries the caller’s raw query string (not a parsed TextQuery):
the planner decides how to interpret and route it across the text
strict, text relaxed, and (future) vector branches. See
crate::compile_retrieval_plan for the planner entry point.
Fields
VectorSearch
Nearest-neighbor search over vector embeddings.
Fields
TextSearch
Full-text search over indexed chunk content using FathomDB’s supported
safe text-query subset.
Fields
Traverse
Graph traversal following edges of the given label.
Fields
§
direction: TraverseDirectionDirection to traverse.
Filter(Predicate)
Row-level filter predicate.
Trait Implementations§
impl Eq for QueryStep
impl StructuralPartialEq for QueryStep
Auto Trait Implementations§
impl Freeze for QueryStep
impl RefUnwindSafe for QueryStep
impl Send for QueryStep
impl Sync for QueryStep
impl Unpin for QueryStep
impl UnsafeUnpin for QueryStep
impl UnwindSafe for QueryStep
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