pub struct Embeddings {
pub vectors: Vec<Vec<f32>>,
pub model: String,
pub input_tokens: u64,
}Expand description
One answered embedding request: one vector per input text, in input order, plus the model that answered and the input tokens it billed.
Fields§
§vectors: Vec<Vec<f32>>§model: StringA provider identifier for the log line and the bill, not a wire value a module switches on.
input_tokens: u64Implementations§
Source§impl Embeddings
impl Embeddings
Sourcepub fn new(model: impl Into<String>) -> Self
pub fn new(model: impl Into<String>) -> Self
An answer by model; vectors and usage follow with
Embeddings::vector / Embeddings::usage.
Trait Implementations§
Source§impl Clone for Embeddings
impl Clone for Embeddings
Source§impl Debug for Embeddings
impl Debug for Embeddings
Source§impl PartialEq for Embeddings
impl PartialEq for Embeddings
impl StructuralPartialEq for Embeddings
Auto Trait Implementations§
impl Freeze for Embeddings
impl RefUnwindSafe for Embeddings
impl Send for Embeddings
impl Sync for Embeddings
impl Unpin for Embeddings
impl UnsafeUnpin for Embeddings
impl UnwindSafe for Embeddings
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