pub enum UncertaintyReason {
AmbiguousTerm {
term: String,
file_count: Option<usize>,
},
GenericQuery {
tokens: Vec<String>,
},
LowResultCount {
count: usize,
},
MissingLayer {
expected_layer: String,
hint: String,
},
SparseIndex,
DbStateUnannotated {
state: String,
},
}Expand description
A single, machine-readable uncertainty signal.
Each variant carries only the data required to understand and act on it.
CLI commands collect these into an UncertaintyReport.
Variants§
AmbiguousTerm
A query token matches an excessive number of unrelated files.
Action: add a more specific co-occurring domain term.
Source: query
Fields
GenericQuery
The query consists entirely of generic/stopword-like tokens with
no domain anchor. Results are likely noisy.
Source: query
LowResultCount
Fewer results than expected for a multi-term query. Index may be
incomplete for this area, or the query is too specific.
Source: result_set
MissingLayer
The query implies a layer that is absent from the result set.
Source: result_set
SparseIndex
Very few results and no ambiguous terms — the index may not cover
this domain yet.
Source: result_set
DbStateUnannotated
The workspace has no annotation data — results are based on
structural/FTS signals only, so confidence is inherently reduced.
Source: db_state