pub enum FastEmbedModel {
BGESmallENV15,
BGEBaseENV15,
BGELargeENV15,
AllMiniLML6V2,
AllMiniLML12V2,
MultilingualE5Small,
MultilingualE5Base,
MultilingualE5Large,
Custom {
name: String,
dimensions: usize,
max_sequence_length: Option<usize>,
},
}Expand description
Available FastEmbed models with their configurations
Variants§
BGESmallENV15
BGE Small English v1.5 (384 dimensions) Best for: General purpose, fast inference
BGEBaseENV15
BGE Base English v1.5 (768 dimensions) Best for: Balanced performance and quality
BGELargeENV15
BGE Large English v1.5 (1024 dimensions) Best for: High quality embeddings, slower inference
AllMiniLML6V2
All MiniLM L6 v2 (384 dimensions) Best for: Fast inference, good for semantic search
AllMiniLML12V2
All MiniLM L12 v2 (384 dimensions) Best for: Better quality than L6, still fast
MultilingualE5Small
Multilingual E5 Small (384 dimensions) Best for: Multilingual applications, 100+ languages
MultilingualE5Base
Multilingual E5 Base (768 dimensions) Best for: High-quality multilingual embeddings
MultilingualE5Large
Multilingual E5 Large (1024 dimensions) Best for: Best multilingual quality, slower inference
Custom
Custom model with name and dimensions
Implementations§
Source§impl FastEmbedModel
impl FastEmbedModel
Sourcepub fn model_name(&self) -> &str
pub fn model_name(&self) -> &str
Get the model name string used by FastEmbed
Sourcepub fn dimensions(&self) -> usize
pub fn dimensions(&self) -> usize
Get the embedding dimensions
Sourcepub fn max_sequence_length(&self) -> usize
pub fn max_sequence_length(&self) -> usize
Get the maximum sequence length supported by the model
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Get a description of the model
Sourcepub fn language_support(&self) -> Vec<&str>
pub fn language_support(&self) -> Vec<&str>
Get the languages supported by the model
Sourcepub fn supports_language(&self, language: &str) -> bool
pub fn supports_language(&self, language: &str) -> bool
Check if the model supports a specific language
Sourcepub fn model_family(&self) -> ModelFamily
pub fn model_family(&self) -> ModelFamily
Get the model family (BGE, MiniLM, E5, etc.)
Sourcepub fn to_fastembed_model(&self) -> EmbeddingModel
pub fn to_fastembed_model(&self) -> EmbeddingModel
Convert to fastembed EmbeddingModel enum
Trait Implementations§
Source§impl Clone for FastEmbedModel
impl Clone for FastEmbedModel
Source§fn clone(&self) -> FastEmbedModel
fn clone(&self) -> FastEmbedModel
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FastEmbedModel
impl Debug for FastEmbedModel
Source§impl<'de> Deserialize<'de> for FastEmbedModel
impl<'de> Deserialize<'de> for FastEmbedModel
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>,
Source§impl Hash for FastEmbedModel
impl Hash for FastEmbedModel
Source§impl PartialEq for FastEmbedModel
impl PartialEq for FastEmbedModel
Source§impl Serialize for FastEmbedModel
impl Serialize for FastEmbedModel
impl Eq for FastEmbedModel
impl StructuralPartialEq for FastEmbedModel
Auto Trait Implementations§
impl Freeze for FastEmbedModel
impl RefUnwindSafe for FastEmbedModel
impl Send for FastEmbedModel
impl Sync for FastEmbedModel
impl Unpin for FastEmbedModel
impl UnwindSafe for FastEmbedModel
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,
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