pub enum EmbeddingModelType {
Show 42 variants
BgeSmallEnV15,
BgeSmallEnV15Q,
AllMiniLmL6V2,
AllMiniLmL6V2Q,
AllMiniLmL12V2,
AllMiniLmL12V2Q,
AllMpnetBaseV2,
BgeBaseEnV15,
BgeBaseEnV15Q,
BgeLargeEnV15,
BgeLargeEnV15Q,
MultilingualE5Small,
MultilingualE5Base,
MultilingualE5Large,
ParaphraseMiniLmL12V2,
ParaphraseMiniLmL12V2Q,
ParaphraseMultilingualMpnetBaseV2,
BgeSmallZhV15,
BgeLargeZhV15,
NomicEmbedTextV1,
NomicEmbedTextV15,
NomicEmbedTextV15Q,
MxbaiEmbedLargeV1,
MxbaiEmbedLargeV1Q,
GteBaseEnV15,
GteBaseEnV15Q,
GteLargeEnV15,
GteLargeEnV15Q,
ClipVitB32,
JinaEmbeddingsV2BaseCode,
EmbeddingGemma300M,
ModernBertEmbedLarge,
SnowflakeArcticEmbedXs,
SnowflakeArcticEmbedXsQ,
SnowflakeArcticEmbedS,
SnowflakeArcticEmbedSQ,
SnowflakeArcticEmbedM,
SnowflakeArcticEmbedMQ,
SnowflakeArcticEmbedMLong,
SnowflakeArcticEmbedMLongQ,
SnowflakeArcticEmbedL,
SnowflakeArcticEmbedLQ,
}Expand description
Supported embedding models with their metadata.
This enum wraps fastembed’s EmbeddingModel with additional metadata for easier configuration and selection.
Variants§
BgeSmallEnV15
BAAI/bge-small-en-v1.5 - Fast, 384 dimensions (DEFAULT)
BgeSmallEnV15Q
Quantized BAAI/bge-small-en-v1.5
AllMiniLmL6V2
sentence-transformers/all-MiniLM-L6-v2 - Very fast, 384 dimensions
AllMiniLmL6V2Q
Quantized all-MiniLM-L6-v2
AllMiniLmL12V2
sentence-transformers/all-MiniLM-L12-v2 - Better quality, 384 dimensions
AllMiniLmL12V2Q
Quantized all-MiniLM-L12-v2
AllMpnetBaseV2
sentence-transformers/all-mpnet-base-v2 - 768 dimensions
BgeBaseEnV15
BAAI/bge-base-en-v1.5 - 768 dimensions
BgeBaseEnV15Q
Quantized BAAI/bge-base-en-v1.5
BgeLargeEnV15
BAAI/bge-large-en-v1.5 - 1024 dimensions
BgeLargeEnV15Q
Quantized BAAI/bge-large-en-v1.5
MultilingualE5Small
intfloat/multilingual-e5-small - 384 dimensions
MultilingualE5Base
intfloat/multilingual-e5-base - 768 dimensions
MultilingualE5Large
intfloat/multilingual-e5-large - 1024 dimensions
ParaphraseMiniLmL12V2
sentence-transformers/paraphrase-MiniLM-L12-v2
ParaphraseMiniLmL12V2Q
Quantized paraphrase-MiniLM-L12-v2
ParaphraseMultilingualMpnetBaseV2
sentence-transformers/paraphrase-multilingual-mpnet-base-v2 - 768 dimensions
BgeSmallZhV15
BAAI/bge-small-zh-v1.5 - 512 dimensions
BgeLargeZhV15
BAAI/bge-large-zh-v1.5 - 1024 dimensions
NomicEmbedTextV1
nomic-ai/nomic-embed-text-v1 - 768 dimensions, 8192 context
NomicEmbedTextV15
nomic-ai/nomic-embed-text-v1.5 - 768 dimensions, 8192 context
NomicEmbedTextV15Q
Quantized nomic-embed-text-v1.5
MxbaiEmbedLargeV1
mixedbread-ai/mxbai-embed-large-v1 - 1024 dimensions
MxbaiEmbedLargeV1Q
Quantized mxbai-embed-large-v1
GteBaseEnV15
Alibaba-NLP/gte-base-en-v1.5 - 768 dimensions
GteBaseEnV15Q
Quantized gte-base-en-v1.5
GteLargeEnV15
Alibaba-NLP/gte-large-en-v1.5 - 1024 dimensions
GteLargeEnV15Q
Quantized gte-large-en-v1.5
ClipVitB32
Qdrant/clip-ViT-B-32-text - 512 dimensions, pairs with vision model
JinaEmbeddingsV2BaseCode
jinaai/jina-embeddings-v2-base-code - 768 dimensions
EmbeddingGemma300M
google/embeddinggemma-300m - 768 dimensions
ModernBertEmbedLarge
lightonai/modernbert-embed-large - 1024 dimensions
SnowflakeArcticEmbedXs
snowflake/snowflake-arctic-embed-xs - 384 dimensions
SnowflakeArcticEmbedXsQ
Quantized snowflake-arctic-embed-xs
SnowflakeArcticEmbedS
snowflake/snowflake-arctic-embed-s - 384 dimensions
SnowflakeArcticEmbedSQ
Quantized snowflake-arctic-embed-s
SnowflakeArcticEmbedM
snowflake/snowflake-arctic-embed-m - 768 dimensions
SnowflakeArcticEmbedMQ
Quantized snowflake-arctic-embed-m
SnowflakeArcticEmbedMLong
snowflake/snowflake-arctic-embed-m-long - 768 dimensions, 2048 context
SnowflakeArcticEmbedMLongQ
Quantized snowflake-arctic-embed-m-long
SnowflakeArcticEmbedL
snowflake/snowflake-arctic-embed-l - 1024 dimensions
SnowflakeArcticEmbedLQ
Quantized snowflake-arctic-embed-l
Implementations§
Source§impl EmbeddingModelType
impl EmbeddingModelType
Sourcepub fn to_fastembed_model(&self) -> FastEmbedModel
pub fn to_fastembed_model(&self) -> FastEmbedModel
Convert to fastembed’s EmbeddingModel enum
Sourcepub fn dimensions(&self) -> usize
pub fn dimensions(&self) -> usize
Get the dimension of the embedding output
Sourcepub fn is_quantized(&self) -> bool
pub fn is_quantized(&self) -> bool
Check if this is a quantized model
Sourcepub fn is_multilingual(&self) -> bool
pub fn is_multilingual(&self) -> bool
Check if this model supports multilingual text
Sourcepub fn max_context_length(&self) -> usize
pub fn max_context_length(&self) -> usize
Get the maximum context length in tokens
Trait Implementations§
Source§impl Clone for EmbeddingModelType
impl Clone for EmbeddingModelType
Source§fn clone(&self) -> EmbeddingModelType
fn clone(&self) -> EmbeddingModelType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EmbeddingModelType
impl Debug for EmbeddingModelType
Source§impl Default for EmbeddingModelType
impl Default for EmbeddingModelType
Source§fn default() -> EmbeddingModelType
fn default() -> EmbeddingModelType
Source§impl<'de> Deserialize<'de> for EmbeddingModelType
impl<'de> Deserialize<'de> for EmbeddingModelType
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 Display for EmbeddingModelType
impl Display for EmbeddingModelType
Source§impl FromStr for EmbeddingModelType
impl FromStr for EmbeddingModelType
Source§impl Hash for EmbeddingModelType
impl Hash for EmbeddingModelType
Source§impl PartialEq for EmbeddingModelType
impl PartialEq for EmbeddingModelType
Source§impl Serialize for EmbeddingModelType
impl Serialize for EmbeddingModelType
impl Copy for EmbeddingModelType
impl Eq for EmbeddingModelType
impl StructuralPartialEq for EmbeddingModelType
Auto Trait Implementations§
impl Freeze for EmbeddingModelType
impl RefUnwindSafe for EmbeddingModelType
impl Send for EmbeddingModelType
impl Sync for EmbeddingModelType
impl Unpin for EmbeddingModelType
impl UnwindSafe for EmbeddingModelType
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<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
self to key and returns true if they are equal.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<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<D> OwoColorize for D
impl<D> OwoColorize for D
Source§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
Source§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
Source§fn black(&self) -> FgColorDisplay<'_, Black, Self>
fn black(&self) -> FgColorDisplay<'_, Black, Self>
Source§fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
Source§fn red(&self) -> FgColorDisplay<'_, Red, Self>
fn red(&self) -> FgColorDisplay<'_, Red, Self>
Source§fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
Source§fn green(&self) -> FgColorDisplay<'_, Green, Self>
fn green(&self) -> FgColorDisplay<'_, Green, Self>
Source§fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
Source§fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
Source§fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
Source§fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
Source§fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
Source§fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
Source§fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
Source§fn white(&self) -> FgColorDisplay<'_, White, Self>
fn white(&self) -> FgColorDisplay<'_, White, Self>
Source§fn on_white(&self) -> BgColorDisplay<'_, White, Self>
fn on_white(&self) -> BgColorDisplay<'_, White, Self>
Source§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
Source§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
Source§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
Source§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
Source§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
Source§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
Source§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
Source§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
Source§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
Source§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
Source§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
Source§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
Source§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
Source§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
Source§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
Source§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
Source§fn bold(&self) -> BoldDisplay<'_, Self>
fn bold(&self) -> BoldDisplay<'_, Self>
Source§fn dimmed(&self) -> DimDisplay<'_, Self>
fn dimmed(&self) -> DimDisplay<'_, Self>
Source§fn italic(&self) -> ItalicDisplay<'_, Self>
fn italic(&self) -> ItalicDisplay<'_, Self>
Source§fn underline(&self) -> UnderlineDisplay<'_, Self>
fn underline(&self) -> UnderlineDisplay<'_, Self>
Source§fn blink(&self) -> BlinkDisplay<'_, Self>
fn blink(&self) -> BlinkDisplay<'_, Self>
Source§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
Source§fn reversed(&self) -> ReversedDisplay<'_, Self>
fn reversed(&self) -> ReversedDisplay<'_, Self>
Source§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
Source§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg or
a color-specific method, such as OwoColorize::green, Read moreSource§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg or
a color-specific method, such as OwoColorize::on_yellow, Read moreSource§fn fg_rgb<const R: u8, const G: u8, const B: u8>(
&self,
) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn fg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
Source§fn bg_rgb<const R: u8, const G: u8, const B: u8>(
&self,
) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn bg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
Source§fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
Source§fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
Source§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().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 moreSource§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 moreSource§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.