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 more