pub struct SharedSemanticEmbedder { /* private fields */ }Implementations§
pub fn new( embedder: Arc<dyn SemanticEmbedder>, provider_note: impl Into<String>, ) -> Self
pub fn provider_note(&self) -> &str
Trait Implementations§
Source§fn clone(&self) -> SharedSemanticEmbedder
fn clone(&self) -> SharedSemanticEmbedder
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 morefn provider_kind(&self) -> EmbeddingProviderKind
fn dimensions(&self) -> usize
fn embed(&self, text: &str) -> EmbeddingVector
Auto Trait Implementations§
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