Struct langchain_rust::embedding::ollama::ollama_embedder::OllamaEmbedder
source · pub struct OllamaEmbedder { /* private fields */ }
Implementations§
Trait Implementations§
source§impl Debug for OllamaEmbedder
impl Debug for OllamaEmbedder
source§impl Default for OllamaEmbedder
impl Default for OllamaEmbedder
source§impl Embedder for OllamaEmbedder
impl Embedder for OllamaEmbedder
fn embed_documents<'life0, 'life1, 'async_trait>(
&'life0 self,
documents: &'life1 [String]
) -> Pin<Box<dyn Future<Output = Result<Vec<Vec<f64>>, EmbedderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn embed_query<'life0, 'life1, 'async_trait>(
&'life0 self,
text: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Vec<f64>, EmbedderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for OllamaEmbedder
impl RefUnwindSafe for OllamaEmbedder
impl Send for OllamaEmbedder
impl Sync for OllamaEmbedder
impl Unpin for OllamaEmbedder
impl UnwindSafe for OllamaEmbedder
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