pub struct MistralEmbedding(/* private fields */);Expand description
Implementations§
Trait Implementations§
Source§impl Clone for MistralEmbedding
impl Clone for MistralEmbedding
Source§impl EmbeddingBackend for MistralEmbedding
impl EmbeddingBackend for MistralEmbedding
Source§fn embed(
&self,
input: &str,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + '_>>
fn embed( &self, input: &str, ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + '_>>
Embed a single text string. Read more
Source§fn dimensions(&self) -> usize
fn dimensions(&self) -> usize
Number of dimensions this provider/model produces.
Source§fn model_name(&self) -> &str
fn model_name(&self) -> &str
Model identifier string (e.g.
"text-embedding-3-small").Auto Trait Implementations§
impl Freeze for MistralEmbedding
impl !RefUnwindSafe for MistralEmbedding
impl Send for MistralEmbedding
impl Sync for MistralEmbedding
impl Unpin for MistralEmbedding
impl UnsafeUnpin for MistralEmbedding
impl !UnwindSafe for MistralEmbedding
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