pub enum TaskType {
SemanticSimilarity,
Classification,
Clustering,
RetrievalDocument,
RetrievalQuery,
QuestionAnswering,
FactVerification,
CodeRetrievalQuery,
}
Expand description
Embedding Task types
Variants§
SemanticSimilarity
Used to generate embeddings that are optimized to assess text similarity
Classification
Used to generate embeddings that are optimized to classify texts according to preset labels
Clustering
Used to generate embeddings that are optimized to cluster texts based on their similarities
RetrievalDocument
Used to generate embeddings that are optimized for document search or information retrieval.
RetrievalQuery
QuestionAnswering
FactVerification
CodeRetrievalQuery
Used to retrieve a code block based on a natural language query, such as sort an array or reverse a linked list. Embeddings of the code blocks are computed using RETRIEVAL_DOCUMENT.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TaskType
impl<'de> Deserialize<'de> for TaskType
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
Auto Trait Implementations§
impl Freeze for TaskType
impl RefUnwindSafe for TaskType
impl Send for TaskType
impl Sync for TaskType
impl Unpin for TaskType
impl UnwindSafe for TaskType
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