Google Cloud Vector Search V1 Client - Class EmbeddingTaskType (0.2.0)

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 \ V1

Methods

static::name

Parameter
Name Description
value mixed

static::value

Parameter
Name Description
name mixed

Constants

EMBEDDING_TASK_TYPE_UNSPECIFIED

Value: 0

Unspecified task type.

Generated from protobuf enum EMBEDDING_TASK_TYPE_UNSPECIFIED = 0;

RETRIEVAL_QUERY

Value: 1

Specifies the given text is a query in a search/retrieval setting.

Generated from protobuf enum RETRIEVAL_QUERY = 1;

RETRIEVAL_DOCUMENT

Value: 2

Specifies the given text is a document from the corpus being searched.

Generated from protobuf enum RETRIEVAL_DOCUMENT = 2;

SEMANTIC_SIMILARITY

Value: 3

Specifies the given text will be used for STS.

Generated from protobuf enum SEMANTIC_SIMILARITY = 3;

CLASSIFICATION

Value: 4

Specifies that the given text will be classified.

Generated from protobuf enum CLASSIFICATION = 4;

CLUSTERING

Value: 5

Specifies that the embeddings will be used for clustering.

Generated from protobuf enum CLUSTERING = 5;

QUESTION_ANSWERING

Value: 6

Specifies that the embeddings will be used for question answering.

Generated from protobuf enum QUESTION_ANSWERING = 6;

FACT_VERIFICATION

Value: 7

Specifies that the embeddings will be used for fact verification.

Generated from protobuf enum FACT_VERIFICATION = 7;

CODE_RETRIEVAL_QUERY

Value: 8

Specifies that the embeddings will be used for code retrieval.

Generated from protobuf enum CODE_RETRIEVAL_QUERY = 8;