pub struct EmbeddingOutput {
pub embedding: Vec<f32>,
pub token_count: usize,
}Expand description
Output from embedding.
Fields§
§embedding: Vec<f32>The embedding vector
token_count: usizeNumber of tokens in input
Trait Implementations§
Source§impl Clone for EmbeddingOutput
impl Clone for EmbeddingOutput
Source§fn clone(&self) -> EmbeddingOutput
fn clone(&self) -> EmbeddingOutput
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 moreAuto Trait Implementations§
impl Freeze for EmbeddingOutput
impl RefUnwindSafe for EmbeddingOutput
impl Send for EmbeddingOutput
impl Sync for EmbeddingOutput
impl Unpin for EmbeddingOutput
impl UnwindSafe for EmbeddingOutput
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