Enum langchain_rust::embedding::EmbeddingModel
source · pub enum EmbeddingModel {
AllMiniLML6V2,
BGEBaseENV15,
BGELargeENV15,
BGESmallENV15,
NomicEmbedTextV1,
ParaphraseMLMiniLML12V2,
BGESmallZHV15,
}
Expand description
Enum for the available models
Variants§
AllMiniLML6V2
Sentence Transformer model, MiniLM-L6-v2
BGEBaseENV15
v1.5 release of the base English model
BGELargeENV15
v1.5 release of the large English model
BGESmallENV15
Fast and Default English model
NomicEmbedTextV1
8192 context length english model
ParaphraseMLMiniLML12V2
Multi-lingual model
BGESmallZHV15
v1.5 release of the small Chinese model
Implementations§
source§impl EmbeddingModel
impl EmbeddingModel
pub const VARIANT_COUNT: usize = 7usize
Trait Implementations§
source§impl Clone for EmbeddingModel
impl Clone for EmbeddingModel
source§fn clone(&self) -> EmbeddingModel
fn clone(&self) -> EmbeddingModel
Returns a copy 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 EmbeddingModel
impl Debug for EmbeddingModel
source§impl Display for EmbeddingModel
impl Display for EmbeddingModel
source§impl PartialEq for EmbeddingModel
impl PartialEq for EmbeddingModel
source§fn eq(&self, other: &EmbeddingModel) -> bool
fn eq(&self, other: &EmbeddingModel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for EmbeddingModel
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 UnwindSafe for EmbeddingModel
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
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
Compare self to
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> Pointable for T
impl<T> Pointable for T
source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
source§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString
. Read more