pub struct EmbedOutput {
pub embeddings: Vec<Vec<f32>>,
}Expand description
Output from an embedding request.
Contains the generated embedding vectors, one per input. The embeddings are returned in the same order as the input texts.
Fields§
§embeddings: Vec<Vec<f32>>Generated embedding vectors, one per input text
Trait Implementations§
Source§impl Clone for EmbedOutput
impl Clone for EmbedOutput
Source§fn clone(&self) -> EmbedOutput
fn clone(&self) -> EmbedOutput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EmbedOutput
impl Debug for EmbedOutput
Source§impl<'de> Deserialize<'de> for EmbedOutput
impl<'de> Deserialize<'de> for EmbedOutput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EmbedOutput
impl RefUnwindSafe for EmbedOutput
impl Send for EmbedOutput
impl Sync for EmbedOutput
impl Unpin for EmbedOutput
impl UnsafeUnpin for EmbedOutput
impl UnwindSafe for EmbedOutput
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