pub enum CohereInputType {
SearchDocument,
SearchQuery,
Classification,
Clustering,
}Expand description
Input type for Cohere embeddings.
Using the correct input type is important for retrieval quality.
Variants§
SearchDocument
For embedding documents to be stored in a vector database.
SearchQuery
For embedding queries used to search the vector database.
Classification
For classification tasks.
Clustering
For clustering tasks.
Implementations§
Trait Implementations§
Source§impl Clone for CohereInputType
impl Clone for CohereInputType
Source§fn clone(&self) -> CohereInputType
fn clone(&self) -> CohereInputType
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 moreSource§impl Debug for CohereInputType
impl Debug for CohereInputType
Source§impl PartialEq for CohereInputType
impl PartialEq for CohereInputType
impl Eq for CohereInputType
impl StructuralPartialEq for CohereInputType
Auto Trait Implementations§
impl Freeze for CohereInputType
impl RefUnwindSafe for CohereInputType
impl Send for CohereInputType
impl Sync for CohereInputType
impl Unpin for CohereInputType
impl UnsafeUnpin for CohereInputType
impl UnwindSafe for CohereInputType
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.