pub struct DeterministicEmbedder { /* private fields */ }Expand description
Simple deterministic embedding provider (for testing)
Implementations§
Trait Implementations§
Source§impl EmbeddingProvider for DeterministicEmbedder
impl EmbeddingProvider for DeterministicEmbedder
Source§fn embed<'life0, 'life1, 'async_trait>(
&'life0 self,
text: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Embedding>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn embed<'life0, 'life1, 'async_trait>(
&'life0 self,
text: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Embedding>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Generate embedding for text
Auto Trait Implementations§
impl Freeze for DeterministicEmbedder
impl RefUnwindSafe for DeterministicEmbedder
impl Send for DeterministicEmbedder
impl Sync for DeterministicEmbedder
impl Unpin for DeterministicEmbedder
impl UnwindSafe for DeterministicEmbedder
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