#[non_exhaustive]pub enum EmbeddingTask {
SearchQuery,
SearchDocument,
Classification,
Clustering,
CodeRetrieval,
FactChecking,
QuestionAnswering,
SentenceSimilarity,
}Expand description
The purpose of an embedding. Each backend documents its supported mapping. These are embedding tasks, never instructions to generate answers or summaries.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SearchQuery
SearchDocument
Classification
Clustering
CodeRetrieval
FactChecking
QuestionAnswering
SentenceSimilarity
Trait Implementations§
Source§impl Clone for EmbeddingTask
impl Clone for EmbeddingTask
impl Copy for EmbeddingTask
Source§impl Debug for EmbeddingTask
impl Debug for EmbeddingTask
impl Eq for EmbeddingTask
Source§impl Hash for EmbeddingTask
impl Hash for EmbeddingTask
Source§impl PartialEq for EmbeddingTask
impl PartialEq for EmbeddingTask
impl StructuralPartialEq for EmbeddingTask
Auto Trait Implementations§
impl Freeze for EmbeddingTask
impl RefUnwindSafe for EmbeddingTask
impl Send for EmbeddingTask
impl Sync for EmbeddingTask
impl Unpin for EmbeddingTask
impl UnsafeUnpin for EmbeddingTask
impl UnwindSafe for EmbeddingTask
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