pub enum EmbeddingTaskType {
RetrievalQuery,
RetrievalDocument,
SemanticSimilarity,
Classification,
Clustering,
QuestionAnswering,
FactVerification,
Unspecified,
}Expand description
Embedding task type for optimization (provider-specific)
Variants§
RetrievalQuery
Retrieval query
RetrievalDocument
Retrieval document
SemanticSimilarity
Semantic similarity
Classification
Classification
Clustering
Clustering
QuestionAnswering
Question answering
FactVerification
Fact verification
Unspecified
Unspecified task
Trait Implementations§
Source§impl Clone for EmbeddingTaskType
impl Clone for EmbeddingTaskType
Source§fn clone(&self) -> EmbeddingTaskType
fn clone(&self) -> EmbeddingTaskType
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 EmbeddingTaskType
impl Debug for EmbeddingTaskType
Source§impl<'de> Deserialize<'de> for EmbeddingTaskType
impl<'de> Deserialize<'de> for EmbeddingTaskType
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 EmbeddingTaskType
impl PartialEq for EmbeddingTaskType
Source§impl Serialize for EmbeddingTaskType
impl Serialize for EmbeddingTaskType
impl StructuralPartialEq for EmbeddingTaskType
Auto Trait Implementations§
impl Freeze for EmbeddingTaskType
impl RefUnwindSafe for EmbeddingTaskType
impl Send for EmbeddingTaskType
impl Sync for EmbeddingTaskType
impl Unpin for EmbeddingTaskType
impl UnsafeUnpin for EmbeddingTaskType
impl UnwindSafe for EmbeddingTaskType
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