pub enum EmbeddingModel {
Show 44 variants
BGESmallENV15,
AllMiniLML6V2,
AllMiniLML6V2Q,
AllMiniLML12V2,
AllMiniLML12V2Q,
AllMpnetBaseV2,
BGEBaseENV15,
BGEBaseENV15Q,
BGELargeENV15,
BGELargeENV15Q,
BGESmallENV15Q,
BGESmallZHV15,
BGELargeZHV15,
BGEM3,
NomicEmbedTextV1,
NomicEmbedTextV15,
NomicEmbedTextV15Q,
ParaphraseMLMiniLML12V2,
ParaphraseMLMiniLML12V2Q,
ParaphraseMLMpnetBaseV2,
ModernBertEmbedLarge,
MultilingualE5Small,
MultilingualE5Base,
MultilingualE5Large,
MxbaiEmbedLargeV1,
MxbaiEmbedLargeV1Q,
GTEBaseENV15,
GTEBaseENV15Q,
GTELargeENV15,
GTELargeENV15Q,
ClipVitB32,
JinaEmbeddingsV2BaseCode,
JinaEmbeddingsV2BaseEN,
EmbeddingGemma300M,
SnowflakeArcticEmbedXS,
SnowflakeArcticEmbedXSQ,
SnowflakeArcticEmbedS,
SnowflakeArcticEmbedSQ,
SnowflakeArcticEmbedM,
SnowflakeArcticEmbedMQ,
SnowflakeArcticEmbedMLong,
SnowflakeArcticEmbedMLongQ,
SnowflakeArcticEmbedL,
SnowflakeArcticEmbedLQ,
}Expand description
Embedding model catalog with metadata for all supported ONNX models.
Variant names match fastembed::EmbeddingModel exactly for trivial 1:1 mapping.
Variants§
BGESmallENV15
BGE Small EN v1.5 — fast 384-dim English model (default).
AllMiniLML6V2
sentence-transformers all-MiniLM-L6-v2 (384-dim).
AllMiniLML6V2Q
Quantized all-MiniLM-L6-v2 (384-dim).
AllMiniLML12V2
sentence-transformers all-MiniLM-L12-v2 (384-dim).
AllMiniLML12V2Q
Quantized all-MiniLM-L12-v2 (384-dim).
AllMpnetBaseV2
sentence-transformers all-mpnet-base-v2 (768-dim).
BGEBaseENV15
BGE Base EN v1.5 (768-dim).
BGEBaseENV15Q
Quantized BGE Base EN v1.5 (768-dim).
BGELargeENV15
BGE Large EN v1.5 (1024-dim).
BGELargeENV15Q
Quantized BGE Large EN v1.5 (1024-dim).
BGESmallENV15Q
Quantized BGE Small EN v1.5 (384-dim).
BGESmallZHV15
BGE Small ZH v1.5 — Chinese model (512-dim).
BGELargeZHV15
BGE Large ZH v1.5 — Chinese model (1024-dim).
BGEM3
BGE M3 — multilingual, 100+ languages, 8192 context (1024-dim).
NomicEmbedTextV1
Nomic Embed Text v1 — 8192 context English model (768-dim).
NomicEmbedTextV15
Nomic Embed Text v1.5 — 8192 context English model (768-dim).
NomicEmbedTextV15Q
Quantized Nomic Embed Text v1.5 (768-dim).
ParaphraseMLMiniLML12V2
Paraphrase multilingual MiniLM-L12-v2 (384-dim).
ParaphraseMLMiniLML12V2Q
Quantized paraphrase multilingual MiniLM-L12-v2 (384-dim).
ParaphraseMLMpnetBaseV2
Paraphrase multilingual mpnet-base-v2 (768-dim).
ModernBertEmbedLarge
ModernBERT Embed Large (1024-dim).
MultilingualE5Small
Multilingual E5 Small (384-dim).
MultilingualE5Base
Multilingual E5 Base (768-dim).
MultilingualE5Large
Multilingual E5 Large (1024-dim).
MxbaiEmbedLargeV1
Mixedbread mxbai-embed-large-v1 (1024-dim).
MxbaiEmbedLargeV1Q
Quantized mxbai-embed-large-v1 (1024-dim).
GTEBaseENV15
Alibaba GTE Base EN v1.5 (768-dim).
GTEBaseENV15Q
Quantized Alibaba GTE Base EN v1.5 (768-dim).
GTELargeENV15
Alibaba GTE Large EN v1.5 (1024-dim).
GTELargeENV15Q
Quantized Alibaba GTE Large EN v1.5 (1024-dim).
ClipVitB32
OpenAI CLIP ViT-B/32 text encoder (512-dim).
JinaEmbeddingsV2BaseCode
Jina Embeddings v2 Base for code (768-dim).
JinaEmbeddingsV2BaseEN
Jina Embeddings v2 Base for English (768-dim).
EmbeddingGemma300M
Google EmbeddingGemma 300M (768-dim).
SnowflakeArcticEmbedXS
Snowflake Arctic Embed XS (384-dim).
SnowflakeArcticEmbedXSQ
Quantized Snowflake Arctic Embed XS (384-dim).
SnowflakeArcticEmbedS
Snowflake Arctic Embed S (384-dim).
SnowflakeArcticEmbedSQ
Quantized Snowflake Arctic Embed S (384-dim).
SnowflakeArcticEmbedM
Snowflake Arctic Embed M (768-dim).
SnowflakeArcticEmbedMQ
Quantized Snowflake Arctic Embed M (768-dim).
SnowflakeArcticEmbedMLong
Snowflake Arctic Embed M Long — 2048 context (768-dim).
SnowflakeArcticEmbedMLongQ
Quantized Snowflake Arctic Embed M Long (768-dim).
SnowflakeArcticEmbedL
Snowflake Arctic Embed L (1024-dim).
SnowflakeArcticEmbedLQ
Quantized Snowflake Arctic Embed L (1024-dim).
Implementations§
Source§impl EmbeddingModel
impl EmbeddingModel
Sourcepub const fn description(self) -> &'static str
pub const fn description(self) -> &'static str
Short human-readable description.
Sourcepub const fn query_prefix(self) -> Option<&'static str>
pub const fn query_prefix(self) -> Option<&'static str>
Optional prefix prepended to query texts before embedding.
Sourcepub const fn doc_prefix(self) -> Option<&'static str>
pub const fn doc_prefix(self) -> Option<&'static str>
Optional prefix prepended to document texts before embedding.
Sourcepub const fn model_id(self) -> &'static str
pub const fn model_id(self) -> &'static str
Original HuggingFace model name (e.g. "BAAI/bge-small-en-v1.5").
This is the canonical model identifier from the original publisher.
For the actual HuggingFace repository used by fastembed-rs for downloads
and caching, use model_code instead.
Sourcepub const fn max_seq_length(self) -> usize
pub const fn max_seq_length(self) -> usize
Maximum token context per model.
Sourcepub const fn is_quantized(self) -> bool
pub const fn is_quantized(self) -> bool
Whether this is a quantized model (Q suffix).
Sourcepub const fn is_image_model(self) -> bool
pub const fn is_image_model(self) -> bool
Whether this model handles image inputs (CLIP).
Sourcepub const fn model_code(self) -> &'static str
pub const fn model_code(self) -> &'static str
HuggingFace model code used by fastembed-rs for downloads and caching
(e.g. "Xenova/bge-small-en-v1.5").
This is the actual repository identifier that hf-hub uses when
downloading model weights. Differs from model_id
when the ONNX conversion lives in a separate repo (e.g. Qdrant/…,
Xenova/…, onnx-community/…).
Sourcepub fn as_fastembed(self) -> EmbeddingModel
pub fn as_fastembed(self) -> EmbeddingModel
Map to fastembed::EmbeddingModel.
Only available when an ONNX embedding feature is enabled
(embedding-fastembed or embedding-fastembed-dynamic-linking).
Trait Implementations§
Source§impl Clone for EmbeddingModel
impl Clone for EmbeddingModel
Source§fn clone(&self) -> EmbeddingModel
fn clone(&self) -> EmbeddingModel
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for EmbeddingModel
Source§impl Debug for EmbeddingModel
impl Debug for EmbeddingModel
Source§impl Default for EmbeddingModel
impl Default for EmbeddingModel
Source§fn default() -> EmbeddingModel
fn default() -> EmbeddingModel
Source§impl Display for EmbeddingModel
impl Display for EmbeddingModel
impl Eq for EmbeddingModel
Source§impl FromStr for EmbeddingModel
impl FromStr for EmbeddingModel
Source§impl Hash for EmbeddingModel
impl Hash for EmbeddingModel
Source§impl PartialEq for EmbeddingModel
impl PartialEq for EmbeddingModel
Source§fn eq(&self, other: &EmbeddingModel) -> bool
fn eq(&self, other: &EmbeddingModel) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EmbeddingModel
Auto Trait Implementations§
impl Freeze for EmbeddingModel
impl RefUnwindSafe for EmbeddingModel
impl Send for EmbeddingModel
impl Sync for EmbeddingModel
impl Unpin for EmbeddingModel
impl UnsafeUnpin for EmbeddingModel
impl UnwindSafe for EmbeddingModel
Blanket Implementations§
impl<T> Boilerplate for T
impl<T> Boilerplate for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§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,
impl<T> Read<Exclusive, BecauseExclusive> 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().impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more