Enum Class VertexAiTextEmbeddingOptions.TaskType
java.lang.Object
java.lang.Enum<VertexAiTextEmbeddingOptions.TaskType>
org.springframework.ai.vertexai.embedding.text.VertexAiTextEmbeddingOptions.TaskType
- All Implemented Interfaces:
Serializable,Comparable<VertexAiTextEmbeddingOptions.TaskType>,Constable
- Enclosing class:
- VertexAiTextEmbeddingOptions
public static enum VertexAiTextEmbeddingOptions.TaskType
extends Enum<VertexAiTextEmbeddingOptions.TaskType>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSpecifies that the embeddings will be used for classification.Specifies that the embeddings will be used for clustering.Specifies that the query embedding is used for fact verification.Specifies that the query embedding is used for answering questions.Specifies the given text is a query in a search/retrieval setting.Specifies the given text is a document in a search/retrieval setting.Specifies the given text will be used for semantic textual similarity (STS). -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RETRIEVAL_QUERY
Specifies the given text is a document in a search/retrieval setting. -
RETRIEVAL_DOCUMENT
Specifies the given text is a query in a search/retrieval setting. -
SEMANTIC_SIMILARITY
Specifies the given text will be used for semantic textual similarity (STS). -
CLASSIFICATION
Specifies that the embeddings will be used for classification. -
CLUSTERING
Specifies that the embeddings will be used for clustering. -
QUESTION_ANSWERING
Specifies that the query embedding is used for answering questions. Use RETRIEVAL_DOCUMENT for the document side. -
FACT_VERIFICATION
Specifies that the query embedding is used for fact verification.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-