pub struct EmbedderStack { /* private fields */ }Expand description
Resolved fast/quality embedder stack for progressive search.
Implementations§
Source§impl EmbedderStack
impl EmbedderStack
Sourcepub fn from_parts(
fast: Arc<dyn Embedder>,
quality: Option<Arc<dyn Embedder>>,
) -> Self
pub fn from_parts( fast: Arc<dyn Embedder>, quality: Option<Arc<dyn Embedder>>, ) -> Self
Build from explicit parts.
Sourcepub fn auto_detect() -> SearchResult<Self>
pub fn auto_detect() -> SearchResult<Self>
Auto-detect best available embedders from default search paths.
§Errors
Returns SearchError::EmbedderUnavailable when no usable fast embedder is available.
Sourcepub fn auto_detect_with(model_root: Option<&Path>) -> SearchResult<Self>
pub fn auto_detect_with(model_root: Option<&Path>) -> SearchResult<Self>
Auto-detect embedders with an optional explicit model root override.
§Errors
Returns SearchError::EmbedderUnavailable when no usable fast embedder is available.
Sourcepub fn with_mrl_target_dim(self, target_dim: usize) -> SearchResult<Self>
pub fn with_mrl_target_dim(self, target_dim: usize) -> SearchResult<Self>
Apply MRL-style dimensionality reduction where supported.
§Errors
Returns SearchError::InvalidConfig when target_dim is zero.
Sourcepub fn fast_embedder(&self) -> &dyn Embedder
pub fn fast_embedder(&self) -> &dyn Embedder
Fast embedder alias for API compatibility.
Sourcepub fn quality_embedder(&self) -> Option<&dyn Embedder>
pub fn quality_embedder(&self) -> Option<&dyn Embedder>
Optional quality embedder alias for API compatibility.
Sourcepub fn quality_arc(&self) -> Option<Arc<dyn Embedder>>
pub fn quality_arc(&self) -> Option<Arc<dyn Embedder>>
Cloned quality embedder handle.
Sourcepub const fn availability(&self) -> TwoTierAvailability
pub const fn availability(&self) -> TwoTierAvailability
Availability state.
Sourcepub fn diagnose(&self) -> ModelAvailabilityDiagnostic
pub fn diagnose(&self) -> ModelAvailabilityDiagnostic
Generate a user-facing diagnostic report about model availability.
Includes actionable suggestions for resolving degraded states: cache directory paths, manual download URLs, environment variable hints.
Sourcepub fn degradation_message(&self) -> Option<String>
pub fn degradation_message(&self) -> Option<String>
Returns a user-facing message if operating in a degraded mode, or None if fully available.
Trait Implementations§
Source§impl Clone for EmbedderStack
impl Clone for EmbedderStack
Source§fn clone(&self) -> EmbedderStack
fn clone(&self) -> EmbedderStack
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more