pub struct ScoredEmbedding {
pub record: EmbeddingRecord,
pub score: f32,
}Expand description
Embedding search result pairing a matching record with its similarity score.
Fields§
§record: EmbeddingRecordThe matching embedding record.
score: f32Similarity score (higher means closer match).
Trait Implementations§
Source§impl Clone for ScoredEmbedding
impl Clone for ScoredEmbedding
Source§fn clone(&self) -> ScoredEmbedding
fn clone(&self) -> ScoredEmbedding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ScoredEmbedding
impl Debug for ScoredEmbedding
Source§impl<'de> Deserialize<'de> for ScoredEmbedding
impl<'de> Deserialize<'de> for ScoredEmbedding
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
Source§impl PartialEq for ScoredEmbedding
impl PartialEq for ScoredEmbedding
Source§fn eq(&self, other: &ScoredEmbedding) -> bool
fn eq(&self, other: &ScoredEmbedding) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ScoredEmbedding
impl Serialize for ScoredEmbedding
impl StructuralPartialEq for ScoredEmbedding
Auto Trait Implementations§
impl Freeze for ScoredEmbedding
impl RefUnwindSafe for ScoredEmbedding
impl Send for ScoredEmbedding
impl Sync for ScoredEmbedding
impl Unpin for ScoredEmbedding
impl UnsafeUnpin for ScoredEmbedding
impl UnwindSafe for ScoredEmbedding
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