pub struct VoyageEmbedding(/* private fields */);Expand description
Implementations§
Trait Implementations§
Source§impl Clone for VoyageEmbedding
impl Clone for VoyageEmbedding
Source§impl EmbeddingBackend for VoyageEmbedding
impl EmbeddingBackend for VoyageEmbedding
Source§fn embed(
&self,
input: &str,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + '_>>
fn embed( &self, input: &str, ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + '_>>
Embed a single text string. Read more
Source§fn dimensions(&self) -> usize
fn dimensions(&self) -> usize
Number of dimensions this provider/model produces.
Source§fn model_name(&self) -> &str
fn model_name(&self) -> &str
Model identifier string (e.g.
"text-embedding-3-small").Auto Trait Implementations§
impl Freeze for VoyageEmbedding
impl !RefUnwindSafe for VoyageEmbedding
impl Send for VoyageEmbedding
impl Sync for VoyageEmbedding
impl Unpin for VoyageEmbedding
impl UnsafeUnpin for VoyageEmbedding
impl !UnwindSafe for VoyageEmbedding
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