pub struct AzureOpenAiEmbeddings { /* private fields */ }Expand description
Azure OpenAI embeddings.
Implementations§
Source§impl AzureOpenAiEmbeddings
impl AzureOpenAiEmbeddings
pub fn new( config: AzureOpenAiEmbeddingsConfig, backend: Arc<dyn ProviderBackend>, ) -> Self
Trait Implementations§
Source§impl Embeddings for AzureOpenAiEmbeddings
impl Embeddings for AzureOpenAiEmbeddings
Source§fn embed_documents<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
texts: &'life1 [&'life2 str],
) -> Pin<Box<dyn Future<Output = Result<Vec<Vec<f32>>, SynapticError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn embed_documents<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
texts: &'life1 [&'life2 str],
) -> Pin<Box<dyn Future<Output = Result<Vec<Vec<f32>>, SynapticError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Embed multiple texts (for batch document embedding).
Auto Trait Implementations§
impl Freeze for AzureOpenAiEmbeddings
impl !RefUnwindSafe for AzureOpenAiEmbeddings
impl Send for AzureOpenAiEmbeddings
impl Sync for AzureOpenAiEmbeddings
impl Unpin for AzureOpenAiEmbeddings
impl UnsafeUnpin for AzureOpenAiEmbeddings
impl !UnwindSafe for AzureOpenAiEmbeddings
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