Struct langchain_rust::embedding::FastEmbed
source · pub struct FastEmbed { /* private fields */ }
Implementations§
source§impl FastEmbed
impl FastEmbed
pub fn try_new() -> Result<Self, EmbedderError>
pub fn with_batch_size(self, batch_size: usize) -> Self
Trait Implementations§
source§impl Embedder for FastEmbed
impl Embedder for FastEmbed
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,
source§impl From<TextEmbedding> for FastEmbed
impl From<TextEmbedding> for FastEmbed
source§fn from(model: TextEmbedding) -> Self
fn from(model: TextEmbedding) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for FastEmbed
impl RefUnwindSafe for FastEmbed
impl Send for FastEmbed
impl Sync for FastEmbed
impl Unpin for FastEmbed
impl UnwindSafe for FastEmbed
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