pub enum EmbeddingModelType {
MiniLM,
BgeSmall,
E5Small,
}Expand description
Available embedding models.
Replaces the previous model: String field — callers now supply a
typed enum value, eliminating runtime string-mismatch bugs.
JSON serialisation uses lowercase identifiers:
"minilm", "bge-small", "e5-small".
Variants§
MiniLM
all-MiniLM-L6-v2 — fast and memory-efficient, 384 dimensions
BgeSmall
BAAI/bge-small-en-v1.5 — balanced quality and speed, 384 dimensions
E5Small
intfloat/e5-small-v2 — quality-focused, 384 dimensions
Implementations§
Trait Implementations§
Source§impl Clone for EmbeddingModelType
impl Clone for EmbeddingModelType
Source§fn clone(&self) -> EmbeddingModelType
fn clone(&self) -> EmbeddingModelType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
Returns the “default value” for a type. Read more
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for EmbeddingModelType
impl Display 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 UnsafeUnpin 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
Mutably borrows from an owned value. Read more