pub struct VertexAiEmbeddingProvider { /* private fields */ }Expand description
Vertex AI embedding provider. Uses the global endpoint by default.
Implementations§
Trait Implementations§
Source§impl EmbeddingProvider for VertexAiEmbeddingProvider
impl EmbeddingProvider for VertexAiEmbeddingProvider
fn dimensions(&self) -> usize
fn embed(&self, text: &str) -> Result<Embedding, EmbeddingError>
fn embed_batch(&self, texts: &[&str]) -> Result<Vec<Embedding>, EmbeddingError>
Auto Trait Implementations§
impl !Freeze for VertexAiEmbeddingProvider
impl !RefUnwindSafe for VertexAiEmbeddingProvider
impl Send for VertexAiEmbeddingProvider
impl Sync for VertexAiEmbeddingProvider
impl Unpin for VertexAiEmbeddingProvider
impl UnsafeUnpin for VertexAiEmbeddingProvider
impl !UnwindSafe for VertexAiEmbeddingProvider
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