pub enum SemanticRepresentation {
Symmetric,
Document,
Query,
}
Expand description
Allows you to choose a semantic representation fitting for your usecase.
Variants
Symmetric
Useful for comparing prompts to each other, in use cases such as clustering, classification,
similarity, etc. Symmetric
embeddings are intended to be compared with other Symmetric
embeddings.
Document
Document
and Query
are used together in use cases such as search where you want to
compare shorter queries against larger documents. Document
embeddings are optimized for
larger pieces of text to compare queries against.
Query
Document
and Query
are used together in use cases such as search where you want to
compare shorter queries against larger documents. Query
embeddings are optimized for
shorter texts, such as questions or keywords.
Trait Implementations
sourceimpl Debug for SemanticRepresentation
impl Debug for SemanticRepresentation
sourceimpl Serialize for SemanticRepresentation
impl Serialize for SemanticRepresentation
Auto Trait Implementations
impl RefUnwindSafe for SemanticRepresentation
impl Send for SemanticRepresentation
impl Sync for SemanticRepresentation
impl Unpin for SemanticRepresentation
impl UnwindSafe for SemanticRepresentation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more