pub enum ModelType {
Show 16 variants
AllMiniLML6V2,
AllMiniLML6V2Q,
AllMiniLML12V2,
AllMiniLML12V2Q,
ParaphraseMLMiniLML12V2,
BGESmallENV15,
BGESmallENV15Q,
BGEBaseENV15,
BGELargeENV15,
NomicEmbedTextV1,
NomicEmbedTextV15,
NomicEmbedTextV15Q,
JinaEmbeddingsV2BaseCode,
MultilingualE5Small,
MxbaiEmbedLargeV1,
ModernBertEmbedLarge,
}Expand description
Available embedding models
Variants§
AllMiniLML6V2
All-MiniLM-L6-v2 - 384 dimensions, fast and efficient
AllMiniLML6V2Q
Quantized All-MiniLM-L6-v2 - 384 dimensions, faster
AllMiniLML12V2
All-MiniLM-L12-v2 - 384 dimensions, better quality than L6
AllMiniLML12V2Q
Quantized All-MiniLM-L12-v2 - 384 dimensions
ParaphraseMLMiniLML12V2
Paraphrase-MiniLM-L6-v2 - 384 dimensions
BGESmallENV15
BGE Small EN v1.5 - 384 dimensions, good balance (DEFAULT)
BGESmallENV15Q
Quantized BGE Small EN v1.5 - 384 dimensions, faster
BGEBaseENV15
BGE Base EN v1.5 - 768 dimensions, higher quality
BGELargeENV15
BGE Large EN v1.5 - 1024 dimensions, best BGE quality
NomicEmbedTextV1
Nomic Embed Text v1 - 768 dimensions
NomicEmbedTextV15
Nomic Embed Text v1.5 - 768 dimensions, improved
NomicEmbedTextV15Q
Quantized Nomic Embed Text v1.5 - 768 dimensions
JinaEmbeddingsV2BaseCode
Jina Embeddings v2 Base Code - 768 dimensions, optimized for code
MultilingualE5Small
Multilingual E5 Small - 384 dimensions, multilingual support
MxbaiEmbedLargeV1
MxBai Embed Large v1 - 1024 dimensions, high quality
ModernBertEmbedLarge
ModernBERT Embed Large - 1024 dimensions, latest architecture
Implementations§
Source§impl ModelType
impl ModelType
pub fn to_fastembed_model(self) -> FastEmbedModel
pub fn dimensions(&self) -> usize
pub fn name(&self) -> &'static str
Sourcepub fn is_quantized(&self) -> bool
pub fn is_quantized(&self) -> bool
Check if model is quantized (faster but slightly less accurate)
Sourcepub fn short_name(&self) -> &'static str
pub fn short_name(&self) -> &'static str
Get a short identifier for the model (for filenames, etc.)
Trait Implementations§
impl Copy for ModelType
impl Eq for ModelType
impl StructuralPartialEq for ModelType
Auto Trait Implementations§
impl Freeze for ModelType
impl RefUnwindSafe for ModelType
impl Send for ModelType
impl Sync for ModelType
impl Unpin for ModelType
impl UnsafeUnpin for ModelType
impl UnwindSafe for ModelType
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> 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> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().