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