pub struct GeminiEmbedding(/* private fields */);Expand description
Implementations§
Trait Implementations§
Source§impl Clone for GeminiEmbedding
impl Clone for GeminiEmbedding
Source§impl EmbeddingBackend for GeminiEmbedding
impl EmbeddingBackend for GeminiEmbedding
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 GeminiEmbedding
impl !RefUnwindSafe for GeminiEmbedding
impl Send for GeminiEmbedding
impl Sync for GeminiEmbedding
impl Unpin for GeminiEmbedding
impl UnsafeUnpin for GeminiEmbedding
impl !UnwindSafe for GeminiEmbedding
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