pub struct ContentRelevance {
pub chunk: ContentChunk,
pub score: f32,
pub components: ScoreComponents,
}Expand description
Relevance score result for a content chunk.
Fields§
§chunk: ContentChunkThe content chunk that was scored.
score: f32Final relevance score (0.0 - 1.0).
components: ScoreComponentsScore breakdown by component.
Implementations§
Source§impl ContentRelevance
impl ContentRelevance
Sourcepub fn new(chunk: ContentChunk, score: f32, components: ScoreComponents) -> Self
pub fn new(chunk: ContentChunk, score: f32, components: ScoreComponents) -> Self
Create a new relevance result.
Trait Implementations§
Source§impl Clone for ContentRelevance
impl Clone for ContentRelevance
Source§fn clone(&self) -> ContentRelevance
fn clone(&self) -> ContentRelevance
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 ContentRelevance
impl RefUnwindSafe for ContentRelevance
impl Send for ContentRelevance
impl Sync for ContentRelevance
impl Unpin for ContentRelevance
impl UnsafeUnpin for ContentRelevance
impl UnwindSafe for ContentRelevance
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