pub struct CompiledVectorSearch {
pub root_kind: String,
pub query_text: String,
pub limit: usize,
pub fusable_filters: Vec<Predicate>,
pub residual_filters: Vec<Predicate>,
pub attribution_requested: bool,
}Expand description
A compiled vector-only search plan ready for the coordinator to execute.
Phase 11 delivers a standalone vector retrieval path parallel to
CompiledSearch. It is intentionally structurally distinct: the vector
path has no TextQuery, no relaxed branch, and no SearchMatchMode —
vector hits always carry match_mode: None per addendum 1. The
coordinator consumes this carrier via
ExecutionCoordinator::execute_compiled_vector_search, which emits SQL
against the vec_nodes_active virtual table joined to nodes, and
returns a SearchRows with a single vector block (or an empty result
with was_degraded = true when the sqlite-vec capability is absent).
Fields§
§root_kind: StringRoot kind the caller built the query against. May be empty for kind-agnostic callers, mirroring the text path.
query_text: StringRaw vector query text passed to sqlite-vec via the embedding MATCH
operator. This is a serialized JSON float array (e.g.
"[0.1, 0.2, 0.3, 0.4]") at the time the coordinator binds it.
limit: usizeMaximum number of candidate hits to retrieve from the vec0 KNN scan.
fusable_filters: Vec<Predicate>Fusable predicates pushed into the vector-search CTE by the
coordinator. Evaluated against columns directly available on the
nodes table joined inside the CTE.
residual_filters: Vec<Predicate>Residual predicates applied in the outer WHERE after the CTE
materializes. Currently limited to JSON-property predicates.
attribution_requested: boolWhether the caller requested per-hit match attribution. Per addendum
1 §Attribution on vector hits, vector hits under this flag carry
Some(HitAttribution { matched_paths: vec![] }) — an empty
matched-paths list, not None.
Trait Implementations§
Source§impl Clone for CompiledVectorSearch
impl Clone for CompiledVectorSearch
Source§fn clone(&self) -> CompiledVectorSearch
fn clone(&self) -> CompiledVectorSearch
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more