Reference documentation and code samples for the Google Cloud Vector Search V1 Client class EmbeddingTaskType.
Represents the task the embeddings will be used for.
Protobuf type google.cloud.vectorsearch.v1.EmbeddingTaskType
Namespace
Google \ Cloud \ VectorSearch \ V1Methods
static::name
| Parameter | |
|---|---|
| Name | Description |
value |
mixed
|
static::value
| Parameter | |
|---|---|
| Name | Description |
name |
mixed
|
Constants
EMBEDDING_TASK_TYPE_UNSPECIFIED
Value: 0Unspecified task type.
Generated from protobuf enum EMBEDDING_TASK_TYPE_UNSPECIFIED = 0;
RETRIEVAL_QUERY
Value: 1Specifies the given text is a query in a search/retrieval setting.
Generated from protobuf enum RETRIEVAL_QUERY = 1;
RETRIEVAL_DOCUMENT
Value: 2Specifies the given text is a document from the corpus being searched.
Generated from protobuf enum RETRIEVAL_DOCUMENT = 2;
SEMANTIC_SIMILARITY
Value: 3Specifies the given text will be used for STS.
Generated from protobuf enum SEMANTIC_SIMILARITY = 3;
CLASSIFICATION
Value: 4Specifies that the given text will be classified.
Generated from protobuf enum CLASSIFICATION = 4;
CLUSTERING
Value: 5Specifies that the embeddings will be used for clustering.
Generated from protobuf enum CLUSTERING = 5;
QUESTION_ANSWERING
Value: 6Specifies that the embeddings will be used for question answering.
Generated from protobuf enum QUESTION_ANSWERING = 6;
FACT_VERIFICATION
Value: 7Specifies that the embeddings will be used for fact verification.
Generated from protobuf enum FACT_VERIFICATION = 7;
CODE_RETRIEVAL_QUERY
Value: 8Specifies that the embeddings will be used for code retrieval.
Generated from protobuf enum CODE_RETRIEVAL_QUERY = 8;