pub enum EmbedVerdict {
Keep,
Short,
Unencodable,
Mojibake,
}Expand description
Why a text is not worth embedding. Deliberately about what the text is, never about how it scores: a cosine-threshold dedup would merge contradictory facts – of 40,000 sampled high-cosine pairs, 1,666 differ in numbers and 245 differ in negation.
Variants§
Keep
Short
Below the character floor.
Unencodable
The reader’s sentinel for bytes it could not decode.
Mojibake
UTF-8 bytes shown as cp1252 characters.
Trait Implementations§
Source§impl Clone for EmbedVerdict
impl Clone for EmbedVerdict
impl Copy for EmbedVerdict
Source§impl Debug for EmbedVerdict
impl Debug for EmbedVerdict
impl Eq for EmbedVerdict
Source§impl PartialEq for EmbedVerdict
impl PartialEq for EmbedVerdict
impl StructuralPartialEq for EmbedVerdict
Auto Trait Implementations§
impl Freeze for EmbedVerdict
impl RefUnwindSafe for EmbedVerdict
impl Send for EmbedVerdict
impl Sync for EmbedVerdict
impl Unpin for EmbedVerdict
impl UnsafeUnpin for EmbedVerdict
impl UnwindSafe for EmbedVerdict
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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