pub enum WithOption {
Show 30 variants
Superseded,
ScoreBreakdown,
Explanation,
Provenance,
ContradictionDetection,
Diversity {
lambda: Option<f64>,
},
Dedup {
field: Option<String>,
},
ProgressiveDisclosure {
level: Option<String>,
},
Consistency {
level: Option<String>,
},
Locale {
tag: String,
},
Cache {
ttl_seconds: u64,
},
Rerank {
model: Option<String>,
},
LlmRerank {
model: Option<String>,
},
QueryExpansion,
QueryDecompose,
Hyde,
ConflictResolution,
IncludeSources,
AnnotateRelativeTime,
RecencyWeight {
weight: f64,
},
MinScore {
score: f64,
},
MultiHop {
hops: u64,
},
SessionAffinity {
boost: f64,
},
SubjectAffinity {
boost: f64,
},
SessionCoverage {
min_per_ns: u64,
},
MaxNamespaces {
max: u64,
},
Exhaustive {
max_rounds: Option<u64>,
},
SessionCensus {
min_per_session: Option<u64>,
min_score: Option<f64>,
},
AggregationIntent,
PreferenceEnrichment,
}Expand description
A WITH option modifying query behaviour.
Variants§
Superseded
Include superseded (historical) grains in results.
ScoreBreakdown
Include relevance score breakdown per result.
Explanation
Include a human-readable explanation of ranking.
Provenance
Include provenance chain in results.
ContradictionDetection
Enable contradiction detection on the result set.
Diversity
Apply MMR diversity to the result set.
Dedup
Deduplicate results, optionally keyed by a specific field name.
EBNF: "dedup" , "(" , field_name , ")".
ProgressiveDisclosure
Progressive disclosure level (OMS §4 progressive_disclosure(level)).
level is summary | headlines | full. Bare form (no parens) maps
to None and lets the assembler pick a default.
Consistency
Consistency level (OMS §4 consistency(level) where
level = "eventual" | "bounded" | "linearizable").
Locale
Locale hint for humanization / collation (OMS §4 locale("en-US")).
Cache
Cache directive (OMS §4 cache(ttl=300)).
Rerank
Enable cross-encoder reranking (requires rerank feature).
Optional model name selects a specific reranker from the registry.
LlmRerank
Enable LLM listwise reranking (requires llm-rerank feature).
Optional model name selects a specific LLM reranker from the registry.
QueryExpansion
Enable rule-based query expansion (stemming + synonyms).
QueryDecompose
ADR-023: Enable rule-based query decomposition (2-4 sub-queries per strategy).
Hyde
Enable hypothetical document embeddings.
ConflictResolution
Keep only newest grain per (subject, relation).
IncludeSources
Include derived_from source grains in results.
AnnotateRelativeTime
Annotate results with relative time labels (e.g. “2 weeks ago”).
RecencyWeight
Set recency weight for temporal freshness scoring.
MinScore
Set minimum relevance score threshold.
MultiHop
Enable entity-graph multi-hop retrieval (1-3 hops).
SessionAffinity
Set session affinity boost factor [0.0–1.0].
SubjectAffinity
Set subject affinity boost factor [0.0–1.0].
SessionCoverage
FR-005: Minimum grains per namespace for cross-session coverage.
MaxNamespaces
FR-005: Maximum unique namespaces in results.
Exhaustive
WI-EXHAUST: Enable exhaustive entity-class recall. Optional rounds parameter.
SessionCensus
RF-3: Session-census retrieval. Optional parameters: min_per_session, min_score.
AggregationIntent
RQ-3: Keep superseded grains at natural scores for aggregation queries.
PreferenceEnrichment
Enrich preference queries with co-occurring session grains.
Trait Implementations§
Source§impl Clone for WithOption
impl Clone for WithOption
Source§fn clone(&self) -> WithOption
fn clone(&self) -> WithOption
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WithOption
impl Debug for WithOption
Source§impl<'de> Deserialize<'de> for WithOption
impl<'de> Deserialize<'de> for WithOption
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for WithOption
impl PartialEq for WithOption
Source§impl Serialize for WithOption
impl Serialize for WithOption
impl StructuralPartialEq for WithOption
Auto Trait Implementations§
impl Freeze for WithOption
impl RefUnwindSafe for WithOption
impl Send for WithOption
impl Sync for WithOption
impl Unpin for WithOption
impl UnsafeUnpin for WithOption
impl UnwindSafe for WithOption
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> Fruit for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more