TaskConfig

sealed class TaskConfig

Known direct subclasses
TaskConfig.Classification

Task type for classification tasks.

TaskConfig.Clustering

Task type for clustering tasks.

TaskConfig.CodeRetrieval

Task type for retrieving code blocks based on a natural language query.

TaskConfig.FactVerification

Task type for statements that need to be verified.

TaskConfig.QuestionAnswering

Task type for questions in a question-answering system.

TaskConfig.RetrievalDocument

Task type for documents to be indexed or retrieved.

TaskConfig.RetrievalQuery

Task type for general search queries.

TaskConfig.SemanticSimilarity

Task type for assessing text similarity.


Defines the available task configurations for the embedding model.

Different task types influence how the model generates embeddings, often by formatting the input to optimize for the target use case:

Summary

Nested types

Task type for classification tasks.

Task type for clustering tasks.

Task type for retrieving code blocks based on a natural language query.

Task type for statements that need to be verified.

Task type for questions in a question-answering system.

Task type for documents to be indexed or retrieved.

Task type for general search queries.

Task type for assessing text similarity.

Protected constructors

Protected constructors

TaskConfig

protected TaskConfig()