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>Reserved RRF fusion weight for future weighted multi-engine fusion.
Current retrieval does not consume this field. Config loading rejects any explicit value rather than silently treating it as applied. Leave it unset until per-engine weighted fusion is implemented. The loader still distinguishes invalid (non-finite or non-positive) values from valid but unsupported ones.
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§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
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> 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