pub struct Embedding {
pub ref_kind: EmbedRef,
pub ref_id: i64,
pub vec: Vec<f32>,
}Expand description
An embedding of an entry or a value, for one model.
Fields§
§ref_kind: EmbedRefWhat it is of.
ref_id: i64The id of the entry or value.
vec: Vec<f32>384 finite values, not all zero (normalised by the caller, when cosine is the measure).
Trait Implementations§
impl StructuralPartialEq for Embedding
Auto Trait Implementations§
impl Forget for Embedding
impl Freeze for Embedding
impl Move for Embedding
impl RefUnwindSafe for Embedding
impl Send for Embedding
impl Sync for Embedding
impl Unpin for Embedding
impl UnsafeUnpin for Embedding
impl UnwindSafe for Embedding
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