pub struct RegisteredEmbedder {
pub name: &'static str,
pub id: &'static str,
pub dimension: usize,
pub is_semantic: bool,
pub description: &'static str,
pub requires_model_files: bool,
pub release_date: &'static str,
pub huggingface_id: &'static str,
pub size_bytes: u64,
pub is_baseline: bool,
}Expand description
Information about a registered embedder.
Structurally identical to frankensearch_embed::model_registry::RegisteredEmbedder.
Fields§
§name: &'static strShort name for CLI/config (e.g., “minilm”, “hash”).
id: &'static strUnique embedder ID (e.g., “minilm-384”, “fnv1a-384”).
dimension: usizeOutput dimension.
is_semantic: boolWhether this is a semantic (ML) embedder.
description: &'static strHuman-readable description.
requires_model_files: boolWhether the model files are required (false = always available).
release_date: &'static strRelease/update date (YYYY-MM-DD format) for bake-off eligibility.
huggingface_id: &'static strHuggingFace model ID for download/reference.
size_bytes: u64Approximate model size in bytes.
is_baseline: boolWhether this is a baseline model (not eligible for bake-off).
Implementations§
Source§impl RegisteredEmbedder
impl RegisteredEmbedder
Sourcepub fn is_available(&self, data_dir: &Path) -> bool
pub fn is_available(&self, data_dir: &Path) -> bool
Check if this embedder is available in the given data directory.
Sourcepub fn model_dir(&self, data_dir: &Path) -> Option<PathBuf>
pub fn model_dir(&self, data_dir: &Path) -> Option<PathBuf>
Get the model directory path for this embedder (if applicable).
Sourcepub fn required_files(&self) -> &'static [&'static str]
pub fn required_files(&self) -> &'static [&'static str]
Get required model files for this embedder.
Sourcepub fn missing_files(&self, data_dir: &Path) -> Vec<String>
pub fn missing_files(&self, data_dir: &Path) -> Vec<String>
Get missing model files for this embedder.
Sourcepub fn is_bakeoff_eligible(&self) -> bool
pub fn is_bakeoff_eligible(&self) -> bool
Check if this embedder is eligible for the bake-off.
Sourcepub fn to_model_metadata(&self) -> ModelMetadata
pub fn to_model_metadata(&self) -> ModelMetadata
Convert to bakeoff ModelMetadata.
Trait Implementations§
Source§impl Clone for RegisteredEmbedder
impl Clone for RegisteredEmbedder
Source§fn clone(&self) -> RegisteredEmbedder
fn clone(&self) -> RegisteredEmbedder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for RegisteredEmbedder
impl RefUnwindSafe for RegisteredEmbedder
impl Send for RegisteredEmbedder
impl Sync for RegisteredEmbedder
impl Unpin for RegisteredEmbedder
impl UnsafeUnpin for RegisteredEmbedder
impl UnwindSafe for RegisteredEmbedder
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
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> 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>. Box<dyn Any> can
then be further downcast into Box<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>. Rc<Any> 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
Source§impl<T> DowncastSync for T
impl<T> DowncastSync 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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> 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