pub struct StoredEmbedding {
pub model: String,
pub vector: Vec<f32>,
}Expand description
A stored vector plus the model that produced it. Vectors from a different model are ignored at recall time instead of being compared.
Fields§
§model: String§vector: Vec<f32>Trait Implementations§
Source§impl Clone for StoredEmbedding
impl Clone for StoredEmbedding
Source§impl Debug for StoredEmbedding
impl Debug for StoredEmbedding
Source§impl PartialEq for StoredEmbedding
impl PartialEq for StoredEmbedding
impl StructuralPartialEq for StoredEmbedding
Auto Trait Implementations§
impl Forget for StoredEmbedding
impl Freeze for StoredEmbedding
impl Move for StoredEmbedding
impl RefUnwindSafe for StoredEmbedding
impl Send for StoredEmbedding
impl Sync for StoredEmbedding
impl Unpin for StoredEmbedding
impl UnsafeUnpin for StoredEmbedding
impl UnwindSafe for StoredEmbedding
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more