pub struct EngineConfig {
pub name: String,
pub model: String,
pub default: bool,
pub fusion_weight: Option<f64>,
pub dims: Option<u32>,
}Expand description
Configuration for a single embedding engine.
Fields§
§name: StringLogical name used to reference this engine in logs and fusion.
model: StringLattice-embed model name (e.g. "all-minilm-l6-v2").
Must be parseable via lattice_embed::EmbeddingModel::from_str (or a
recognised short alias handled by parse_embedding_model_alias).
default: boolWhen true, this engine’s model becomes the primary (RuntimeConfig::embedding_model).
Exactly one engine in the list must set this. If absent, defaults to false.
fusion_weight: Option<f64>RRF fusion weight for weighted multi-engine fusion.
Only meaningful when multiple engines are loaded. Must be > 0 when
present. None means the engine participates in fusion with equal weight
to other engines that also lack a fusion_weight.
For RRF: fusion_weight provides per-engine relative importance during
weighted RRF; it does NOT apply to rank-based unweighted RRF (the weights
are injected into FusionStrategy::Weighted only).
dims: Option<u32>Expected output dimensionality (optional sanity check).
Not used at runtime — dimensions are authoritative from
EmbeddingModel::dimensions(). Present so operators can document the
expected shape alongside the model name.
Trait Implementations§
Source§impl Clone for EngineConfig
impl Clone for EngineConfig
Source§fn clone(&self) -> EngineConfig
fn clone(&self) -> EngineConfig
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 EngineConfig
impl Debug for EngineConfig
Source§impl<'de> Deserialize<'de> for EngineConfig
impl<'de> Deserialize<'de> for EngineConfig
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>,
Auto Trait Implementations§
impl Freeze for EngineConfig
impl RefUnwindSafe for EngineConfig
impl Send for EngineConfig
impl Sync for EngineConfig
impl Unpin for EngineConfig
impl UnsafeUnpin for EngineConfig
impl UnwindSafe for EngineConfig
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
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> 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