pub struct MistralEmbeddingModel { /* private fields */ }Expand description
Mistral Embeddings model handle.
Cheap to clone — shares the provider’s HTTP client and auth state.
Trait Implementations§
Source§impl Clone for MistralEmbeddingModel
impl Clone for MistralEmbeddingModel
Source§fn clone(&self) -> MistralEmbeddingModel
fn clone(&self) -> MistralEmbeddingModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MistralEmbeddingModel
impl Debug for MistralEmbeddingModel
Source§impl EmbeddingModel for MistralEmbeddingModel
impl EmbeddingModel for MistralEmbeddingModel
Source§fn max_embeddings_per_call<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Option<u32>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn max_embeddings_per_call<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Option<u32>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Maximum inputs the provider accepts per call. Read more
Source§fn supports_parallel_calls<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn supports_parallel_calls<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Whether the model can handle multiple embed calls in parallel.
Source§fn do_embed<'life0, 'async_trait>(
&'life0 self,
options: EmbedOptions,
) -> Pin<Box<dyn Future<Output = Result<EmbedResult, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn do_embed<'life0, 'async_trait>(
&'life0 self,
options: EmbedOptions,
) -> Pin<Box<dyn Future<Output = Result<EmbedResult, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Embed a batch of inputs. Read more
Source§fn specification_version(&self) -> &'static str
fn specification_version(&self) -> &'static str
Specification version (currently
"v4"). Read moreAuto Trait Implementations§
impl Freeze for MistralEmbeddingModel
impl !RefUnwindSafe for MistralEmbeddingModel
impl Send for MistralEmbeddingModel
impl Sync for MistralEmbeddingModel
impl Unpin for MistralEmbeddingModel
impl UnsafeUnpin for MistralEmbeddingModel
impl !UnwindSafe for MistralEmbeddingModel
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